This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c/7353: Compiler dies on known working code (as of gcc 3.0)
- From: Reichelt <reichelt at igpm dot rwth-aachen dot de>
- To: gcc-gnats at gcc dot gnu dot org, mike at velgarian dot sytes dot net, gcc-bugs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: Fri, 19 Jul 2002 18:54:36 +0200
- Subject: 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