This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
debug/8446: stabs generation crashes when class inherits from typedef struct
- From: hb at gcc dot x256 dot org
- To: gcc-gnats at gcc dot gnu dot org
- Date: 4 Nov 2002 10:34:38 -0000
- Subject: debug/8446: stabs generation crashes when class inherits from typedef struct
- Reply-to: hb at gcc dot x256 dot org
>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;
}