http://llvm.org/bugs/show_bug.cgi?id=14762

             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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
            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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to