Article View: net.lang.c++
Article #205Bug report
From: Jonathan P. Leech
Date: Thu, 22 May 1986 11:50
Date: Thu, 22 May 1986 11:50
21 lines
1248 bytes
1248 bytes
Organization : California Institute of Technology
The following code:
int spam() {
double (*z)[4] = (double (*)[4])0;
}
is legal C code. It is not legal C++ code (release 1.0),
generating the following error message:
"junk.c", line 2: error: z is undefined
Declarations of this form seem not to cause any problem in member
functions of classes (the only other context in which I had occasion
to use them in C++ until tonight). This is a most annoying bug. Any
help in fixes or workarounds would greatly appreciated.
--
Jon Leech (jon@csvax.caltech.edu || ...seismo!cit-vax!jon)
Caltech Computer Science Graphics Group
__@/
Technical Details
Message-ID:
<498@cit-vax.Caltech.Edu>Path:
arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!caip!nike!ll-xn!cit-vax!jonShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!caip!nike!ll-xn!cit-vax!jon From: jon@cit-vax.Caltech.Edu (Jonathan P. Leech) Newsgroups: net.lang.c++ Subject: Bug report Message-ID: <498@cit-vax.Caltech.Edu> Date: Thu, 22-May-86 07:50:13 EDT Article-I.D.: cit-vax.498 Posted: Thu May 22 07:50:13 1986 Date-Received: Sun, 25-May-86 11:46:33 EDT Reply-To: jon@cit-vax.UUCP (Jonathan P. Leech) Distribution: net Organization: California Institute of Technology Lines: 21