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]

Re: union bug


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


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