https://bugs.llvm.org/show_bug.cgi?id=43905

            Bug ID: 43905
           Summary: COFF Debug info missing nested enumeration.
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: DebugInfo
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected],
                    [email protected]

Given the following test case:

//------------------------------------------------------------
// enum.cpp
//------------------------------------------------------------

struct STRUCT_a {
  enum ENUM_a { One = '1', Two = '2' };
  ENUM_a Enum_a;
};
void testEnum_1() {
  STRUCT_a Struct;
}

//------------------------------------------------------------

Using the following command line options to generate debug info
(DWARF) and (COFF):

clang -c -g -O0 enum.cpp -o enum-dwarf.o
clang -c -g -O0 enum.cpp -o enum-coff.o -gcodeview --target=x86_64-windows

Looking at the output generated by llvm-dwarfdump, llvm-readobj and llvm-diva,
the COFF debug info shows the nested 'ENUM_a' in the 'STRUCT_a' scope.

llvm-dwarfdump --debug-info enum-dwarf.o
llvm-readobj --codeview enum-coff.o

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to