https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77363
Bug ID: 77363 Summary: Missing debug information in DWARF Product: gcc Version: 5.4.0 Status: UNCONFIRMED Severity: major Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: EngyCZ at gmail dot com Target Milestone: --- Created attachment 39489 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39489&action=edit example.c I have found a missing debug information in dwarf for file compiled with g++. Same file compiled with gcc has correct debug information. I have compiled the file as g++ -c -g example.c Export debug information as readelf -wi example.o >deb There is a missing information for type tHash1 <1><2b>: Abbrev Number: 3 (DW_TAG_typedef) <2c> DW_AT_name : (indirect string, offset: 0x23): tHash1 <30> DW_AT_decl_file : 1 <31> DW_AT_decl_line : 4 but for the type tHash2 the information is correct <1><39>: Abbrev Number: 4 (DW_TAG_typedef) <3a> DW_AT_name : (indirect string, offset: 0x2a): tHash2 <3e> DW_AT_decl_file : 1 <3f> DW_AT_decl_line : 5 <40> DW_AT_type : <0x44> <------- OK I ask someone to confirm the bug. example.c attached