This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c/5929: gcc 2.95-3.04 miscompiles anonymous unions inside anonymous structs
- From: neil at gcc dot gnu dot org
- To: degnbol at danbbs dot dk, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, neil at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 12 Mar 2002 23:36:39 -0000
- Subject: Re: c/5929: gcc 2.95-3.04 miscompiles anonymous unions inside anonymous structs
- Reply-to: neil at gcc dot gnu dot org, degnbol at danbbs dot dk, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, neil at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: gcc 2.95-3.04 miscompiles anonymous unions inside anonymous structs
Responsible-Changed-From-To: unassigned->neil
Responsible-Changed-By: neil
Responsible-Changed-When: Tue Mar 12 15:36:37 2002
Responsible-Changed-Why:
Mine.
State-Changed-From-To: open->closed
State-Changed-By: neil
State-Changed-When: Tue Mar 12 15:36:37 2002
State-Changed-Why:
I fixed this for 3.1, which will give:
neil@cat:/tmp$ ./a.out
offset v1 = 0
offset v2 = 4
offset v3 = 8
offset u1 = 12
offset u2 = 12
neil@cat:/tmp$
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5929