c++/3620
Peter Niemayer
niemayer.viag@isg.de
Tue Jul 10 08:26:00 GMT 2001
The following reply was made to PR c++/3620; it has been noted by GNATS.
From: Peter Niemayer <niemayer.viag@isg.de>
To: gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org,
nobody@gcc.gnu.org, mak@is.s.u-tokyo.ac.jp
Cc:
Subject: Re: c++/3620
Date: Tue, 10 Jul 2001 17:18:40 +0200
> Synopsis: GCC3.0 optimization on anonymous union causes ICE
> Description: ICE occurs with the following code and -O option:
> --------------------------------------test.cpp
> void something(char *);
>
> int main()
> {
> union {
> char d[sizeof(int)];
> int ll;
> };
> something(d);
> return ll;
> }
> -----------------------------------------------
Interestingly, this bug is very similar to one that I reported a long
time ago (PR 228) and that was also fixed a long time ago:
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=228&database=gcc
This old bug is still fixed with gcc-3.0 - so maybe the fix of the old
bug introduced the new one?
Regards,
Peter Niemayer
More information about the Gcc-prs
mailing list