This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: c/7353: Compiler dies on known working code (as of gcc 3.0)


Hi,

the ICE is caused by the code in line 2450 and line 2463 of
act.informative.c (lines 10398 and 10411 of the preprocessed file).
If you replace the right hand sides of the = operator by something
else, the code compiles fine.

The offending code can be reduced to

--------------------------snip here-------------------------
typedef A = 0;
--------------------------snip here-------------------------

which will cause an ICE if compiled with gcc 3.1 or the main trunk
as of 20020715 (checked on i686-pc-linux-gnu and mips-sgi-irix6.5).

IMHO the code is illegal. Since it was accepted by earlier versons of
the compiler there seems to be an accepts-illegal bug for gcc 2.95.x
3.0.x.

Greetings,
Volker Reichelt

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7353



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]