public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/35462]  New: anonymous struct in c++ has wrong name in -gdwarf-2
@ 2008-03-04 20:07 mrs at apple dot com
  2008-03-04 20:15 ` [Bug debug/35462] " mrs at apple dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: mrs at apple dot com @ 2008-03-04 20:07 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-04-30 12:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-04 20:07 [Bug debug/35462] New: anonymous struct in c++ has wrong name in -gdwarf-2 mrs at apple dot com
2008-03-04 20:15 ` [Bug debug/35462] " mrs at apple dot com
2009-04-30  7:52 ` jan dot kratochvil at redhat dot com
2009-04-30 12:46 ` jakub at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).