public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/4028: gcc 2.96 RH71 throws internal error #19991113 with anonymous union
@ 2001-08-15  1:06 pb
  0 siblings, 0 replies; 2+ messages in thread
From: pb @ 2001-08-15  1:06 UTC (permalink / raw)
  To: gcc-gnats

>Number:         4028
>Category:       c++
>Synopsis:       gcc 2.96 RH71 throws internal error #19991113 with anonymous union
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Aug 15 01:06:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Philip Bergen
>Release:        gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-85)
>Organization:
>Environment:
RH 7.1 on AMD thunderbird, intel PIII mobile, AMD athlon
>Description:
Only gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
 does not crash, all more recent versions seems to be flawed. Compiler crashes on anonymous union, like the one included. Can be helped by naming the union after which compiler performs flawlessly.
>How-To-Repeat:
Not quite sure, the union in the test is included in a boundschecking class for our memory manager.
>Fix:
Change from anonymous union to named. union { int a; char b[4];} polka; polka.a=0xDEADFACE; compiles just fine.
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="test.cpp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="test.cpp"

I2luY2x1ZGUgPHN0ZGlvLmg+CmludCBtYWluKCkKewogICB1bmlvbiB7CiAgICAgIGludCBtYWdp
Y19pbnQ7CiAgICAgIGNoYXIgbWFnaWNbNF07CiAgIH07CiAgIAogICBtYWdpY19pbnQ9MHhERUFE
RkFDRTsKICAgcHJpbnRmKCIlZCAlZCAlZCAlZFxuIixtYWdpY1swXSxtYWdpY1sxXSxtYWdpY1sy
XSxtYWdpY1szXSk7CiAgIAogICByZXR1cm4gMDsKfQo=


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

* Re: c++/4028: gcc 2.96 RH71 throws internal error #19991113 with anonymous union
@ 2001-08-17 18:01 rodrigc
  0 siblings, 0 replies; 2+ messages in thread
From: rodrigc @ 2001-08-17 18:01 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, pb

Synopsis: gcc 2.96 RH71 throws internal error #19991113 with anonymous union

State-Changed-From-To: open->closed
State-Changed-By: rodrigc
State-Changed-When: Fri Aug 17 18:01:37 2001
State-Changed-Why:
    Does not crash in gcc 3.0.
    
    For bugs associated with the Red Hat distribution of gcc,
    report them to http://bugzilla.redhat.com/bugzilla

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


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

end of thread, other threads:[~2001-08-17 18:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-15  1:06 c++/4028: gcc 2.96 RH71 throws internal error #19991113 with anonymous union pb
2001-08-17 18:01 rodrigc

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).