union bug

Horst von Brand vonbrand@sleipnir.valparaiso.cl
Sat Mar 11 18:17:00 GMT 2000


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



More information about the Gcc-bugs mailing list