typedef struct { int x; } mystruct; mystruct m; should either have no name or a name of mystruct in C++. I see:
.ascii "<anonymous struct>\0" ; DW_AT_name and .ascii "$_0\0" ; external name This works as expected in C. Still fails in 20080308. I think this is target independent. -- Summary: anonymous struct in c++ has wrong name in -gdwarf-2 Product: gcc Version: 4.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: debug AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: mrs at apple dot com GCC target triplet: powerpc-apple-darwin9 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35462