This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


>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;
}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]