This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/35462] New: anonymous struct in c++ has wrong name in -gdwarf-2
- From: "mrs at apple dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Mar 2008 20:06:26 -0000
- Subject: [Bug debug/35462] New: anonymous struct in c++ has wrong name in -gdwarf-2
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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