Bug in egcs-1.1
Martin Rehwald
rehwald@uni-muenster.de
Wed Sep 23 07:09:00 GMT 1998
-----BEGIN PGP SIGNED MESSAGE-----
i extracted a line from the kde-project that causes the egcs compiler to quit
it's job. this can be reproduced compiling the following "program":
int main(int i)
{
char* s=new char[i+1](' ');
}
the result is:
egcserrtst2.cpp: In function `int main(int)':
egcserrtst2.cpp:3: request for member `__ct' in `*{anon}', which is of non-aggregate type `char'
compiling with GNU C++ version egcs-2.91.57 19980901 (egcs-1.1 release) (i586-linux)
this problem does not occur with earlier versions of egcs.
as i am no expert in c++, i don't know, whether this code is no more supported
by some C++-ANSI standard. if this is the problem -- sorry having disturbed
you. but in this case the compiler should complain about non-standard c++ or
something like that and quit with a syntax error.
i think, further output (like that of the -v option) is not necessary.
i can reproduce the problem on another linux-system, totaly different from mine
(no glibc etc.)
--
Institut für Theoretische Physik I
Martin Rehwald Phone: (0251) 83-34921
Wilhelm-Klemm-StraÃÂe 9 E-Mail: mailto:Rehwald@UNI-Muenster.DE
48149 Münster WWW: http://pauli.UNI-Muenster.DE/~rehwald
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
Charset: noconv
iQB1AwUBNgjxeA2cZGCEfJyHAQEJZQMAmSp5nlAK71qFjzRr4QIciI8dlHh1cSGO
n2d3nBV+l37LJ6qT0CWgiaxt5tRWmOndbpwTlVj1IxEXOlK9PkMIlvArrjf35gAg
l0xC2iFehlMEBhaV/c7xU/+aCQtSIgE6
=Q6eL
-----END PGP SIGNATURE-----
More information about the Gcc-bugs
mailing list