public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/3620: GCC3.0 optimization on anonymous union causes ICE
@ 2001-07-09  6:26 MAKINO Takaki
  0 siblings, 0 replies; 4+ messages in thread
From: MAKINO Takaki @ 2001-07-09  6:26 UTC (permalink / raw)
  To: gcc-gnats; +Cc: mak

>Number:         3620
>Category:       c++
>Synopsis:       GCC3.0 optimization on anonymous union causes ICE
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 09 06:26:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Makino Takaki
>Release:        3.0
>Organization:
Tokyo Univ.
>Environment:
System: Linux tetley.is.s.u-tokyo.ac.jp 2.2.16-22enterprise #1 SMP Tue Aug 22 16:29:32 EDT 2000 i686 unknown
Architecture: i686
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ../configure --prefix=/home/users/mak/local/Linux-i686
>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;
}
-----------------------------------------------
mak@tetley% gcc -v
Reading specs from /home/users/mak/local/Linux-i686/lib/gcc-lib/i686-pc-linux-gnu/3.0/specs
Configured with: ../configure --prefix=/home/users/mak/local/Linux-i686
Thread model: single
gcc version 3.0
mak@tetley% g++ -O hoge.cpp
hoge.cpp: In function `int main()':
hoge.cpp:12: Internal compiler error in elimination_effects, at reload1.c:2687
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL: http://www.gnu.org/software/gcc/bugs.html > for instructions.

>How-To-Repeat:
       See description. 
>Fix:
       Work around is to give a name to the union.

int main()
{
        union {
                char d[sizeof(int)];
                int ll;
        } some_name;
        something(some_name.d);
        return some_name.ll;
}

-- 
MAKINO Takaki <mak@is.s.u-tokyo.ac.jp>

>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: c++/3620: GCC3.0 optimization on anonymous union causes ICE
@ 2001-08-07 14:00 mmitchel
  0 siblings, 0 replies; 4+ messages in thread
From: mmitchel @ 2001-08-07 14:00 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, mak, mmitchel

Synopsis: GCC3.0 optimization on anonymous union causes ICE

State-Changed-From-To: analyzed->closed
State-Changed-By: mmitchel
State-Changed-When: Tue Aug  7 14:00:23 2001
State-Changed-Why:
    Already fixed.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3620&database=gcc


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: c++/3620: GCC3.0 optimization on anonymous union causes ICE
@ 2001-07-19 19:44 mmitchel
  0 siblings, 0 replies; 4+ messages in thread
From: mmitchel @ 2001-07-19 19:44 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, mak, mmitchel, nobody

Synopsis: GCC3.0 optimization on anonymous union causes ICE

Responsible-Changed-From-To: unassigned->mmitchel
Responsible-Changed-By: mmitchel
Responsible-Changed-When: Thu Jul 19 19:44:28 2001
Responsible-Changed-Why:
    Working on a fix.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3620&database=gcc


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: c++/3620: GCC3.0 optimization on anonymous union causes ICE
@ 2001-07-09 13:46 nathan
  0 siblings, 0 replies; 4+ messages in thread
From: nathan @ 2001-07-09 13:46 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, mak, nobody

Synopsis: GCC3.0 optimization on anonymous union causes ICE

State-Changed-From-To: open->analyzed
State-Changed-By: nathan
State-Changed-When: Mon Jul  9 13:46:13 2001
State-Changed-Why:
    confirmed as a 2.95 regression

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3620&database=gcc


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-08-07 14:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-09  6:26 c++/3620: GCC3.0 optimization on anonymous union causes ICE MAKINO Takaki
2001-07-09 13:46 nathan
2001-07-19 19:44 mmitchel
2001-08-07 14:00 mmitchel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).