[llvm-bugs] [Bug 46466] New: [DWARF] Does not generate nested enumerations.

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jun 26 02:09:22 PDT 2020


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

            Bug ID: 46466
           Summary: [DWARF] Does not generate nested enumerations.
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: DebugInfo
          Assignee: unassignedbugs at nondot.org
          Reporter: international.phantom at gmail.com
                CC: jdevlieghere at apple.com, keith.walker at arm.com,
                    llvm-bugs at lists.llvm.org,
                    paul_robinson at playstation.sony.com

For the given test:

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

struct Struct {
  union Union {
    enum NestedEnum { RED, BLUE };
  };
  Union U;
};

Struct S;
int test() {
  return S.U.BLUE;
}

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

The DWARF generated does not include any references to the enumerators 'RED'
and 'BLUE'.

DWARF generated by GCC, CodeView generated by Clang and MSVC, it does include
such references.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200626/0b355034/attachment.html>


More information about the llvm-bugs mailing list