[LLVMbugs] [Bug 14762] New: Debug info for anonymous structs with linkage names

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Dec 31 11:56:04 PST 2012


             Bug #: 14762
           Summary: Debug info for anonymous structs with linkage names
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Keywords: googler
          Severity: enhancement
          Priority: P
         Component: C++
        AssignedTo: echristo at gmail.com
        ReportedBy: dblaikie at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
            Blocks: 14330
    Classification: Unclassified

The debug info for types such as:

typedef struct { foo f; } bar;

in Clang does not include the name 'bar' in any of the debug info for the
anonymous struct. GCC includes the MIPS_linkage_name for the anonymous struct
as '3bar' as well as emitting the DW_AT_name of the ctor and dtor as "bar" and
"~bar" respectively.

The latter (emitting the name of the ctor and dtor as bar/~bar) seems to be a
bug ( http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47510 ) & instead should just
be emitted as the linkage name, possibly (though I don't know if that'll
resolve the test case).

This was found in the GDB 7.5 test suite (gdb.cp/anon-struct.exp).

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list