c/5929: gcc 2.95-3.04 miscompiles anonymous unions inside anonymous structs
neil@gcc.gnu.org
neil@gcc.gnu.org
Tue Mar 12 15:36:00 GMT 2002
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
More information about the Gcc-bugs
mailing list