[DWARF] Does not generate nested enumerations. · Issue #45811 · llvm/llvm-project (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Description
Bugzilla Link | 46466 |
---|---|
Version | trunk |
OS | All |
CC | @dwblaikie,@gregbedwell,@JDevlieghere,@jmorse,@walkerkd,@OCHyams,@pogo59,@rnk |
Extended Description
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.