http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54774
Bug #: 54774 Summary: insufficient debug info for strong typed enum Classification: Unclassified Product: gcc Version: 4.6.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: debug AssignedTo: unassig...@gcc.gnu.org ReportedBy: chihin...@oracle.com Created attachment 28320 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28320 compileable c++ test case and dwarf dump For strong typed enum, there is no type information: #include <iostream> enum UI: unsigned int { None = 0, Single = 1, Multiple = 0xFFFF0000U }; <1><26aa>: Abbrev Number: 69 (DW_TAG_enumeration_type) DW_AT_name : UI DW_AT_byte_size : 4 DW_AT_decl_file : 1 DW_AT_decl_line : 3 DW_AT_sibling : <26cc> Should have a DW_AT_type : <unsigned int type> under DW_TAG_enumeration_type