ICE on bogus code

Valentin Bonnard bonnardv@pratique.fr
Tue Nov 3 03:43:00 GMT 1998


The compiler correctly detect the error, but then it crash:

clipper-~ $ cat /tmp/test.cc
class t
{
        typedef std::vector<int> c;
};

clipper-~ $ egcs /tmp/test.cc
/tmp/test.cc:3: warning: ANSI C++ forbids typedef which does not specify a type
/tmp/test.cc:3: Internal compiler error.
/tmp/test.cc:3: Please submit a full bug report to `egcs-bugs@cygnus.com'.
clipper-~ $ egcs -v
Reading specs from /usr/local/util/packages/egcs-050798/lib/gcc-lib/sparc-sun-solaris2.5/egcs-2.91.45/specs
gcc version egcs-2.91.45 19980704 (gcc2 ss-980609 experimental)

This only occurs using qualified names in classes; unqualified 
names and global scope names work well.


Valentin Bonnard                mailto:bonnardv@pratique.fr
info about C++/a propos du C++: http://pages.pratique.fr/~bonnardv/





More information about the Gcc-bugs mailing list