[DWARF] Does not generate nested enumerations. (original) (raw)
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.