debug/8446: stabs generation crashes when class inherits from typedef struct

hb@gcc.x256.org hb@gcc.x256.org
Mon Nov 4 02:36:00 GMT 2002


>Number:         8446
>Category:       debug
>Synopsis:       stabs generation crashes when class inherits from typedef struct
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 04 02:36:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Nicholas Vinen
>Release:        3.2
>Organization:
>Environment:
i686-pc-linux-gnu (SuSE 7.3)
>Description:
The small file below causes GCC 3.2 to crash. It is because the STABS debug record generator can't handle classes which derive from typedef'd structs. Most other debug outputs can, and GCC compiles it fine. I am currently downloading the CVS version to see if it happens there too, but it isn't finished yet.
>How-To-Repeat:
g++ -gstabs test2.cc
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/plain; name="test2.cc"
Content-Disposition: inline; filename="test2.cc"


typedef struct
{
	int a;
} foo;

class bar : public foo
{
};

int main(void)
{
	return 0;
}



More information about the Gcc-bugs mailing list