This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: union bug
- To: batali at cogsci dot ucsd dot edu
- Subject: Re: union bug
- From: Horst von Brand <vonbrand at sleipnir dot valparaiso dot cl>
- Date: Sat, 11 Mar 2000 20:52:05 -0300
- cc: egcs-bugs at egcs dot cygnus dot com
batali@cogsci.ucsd.edu said:
> Here is the file tt.cpp:
>
> -----------------------
>
> typedef union {
> int slot1;
> int slot2;
> };
>
> -----------------------
>
> (This error is distilled from a bigger example.)
>
> Obviously the problem is that I forgot to put the name of the typedef,
> but, as I said, gcc asked me to report it to you.
Thanks for the report. It is indeed a problem if the compiler crashes, even
for invalid input.
Here (i686, linux) I see ICEs with egcs-1.1.2-24 (Red Hat 6.1), gcc-2.95.2
and egcs-20000306, but only with the corresponding g++, gcc works fine.
--
Horst von Brand vonbrand@sleipnir.valparaiso.cl
Casilla 9G, Viņa del Mar, Chile +56 32 672616