http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48229
Summary: DW_TAG_type_unit has no DW_AT_producer Product: gcc Version: 4.5.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: debug AssignedTo: unassig...@gcc.gnu.org ReportedBy: jan.kratoch...@redhat.com Target: x86_64-unknown-linux-gnu FAIL g++ (GCC) 4.5.3 20110322 (prerelease) FAIL g++ (GCC) 4.6.0 20110322 (prerelease) FAIL g++ (GCC) 4.7.0 20110322 (experimental) echo 'class C {} c;' | g++ -o 1.o -c -g -Wall -x c++ - -gdwarf-4 Contents of the .debug_info section: <0><b>: Abbrev Number: 3 (DW_TAG_compile_unit) < c> DW_AT_producer : GNU C++ 4.5.3 20110322 (prerelease) + Contents of the .debug_types section: <0><17>: Abbrev Number: 1 (DW_TAG_type_unit) <18> DW_AT_language : 4 (C++) <19> DW_AT_GNU_odr_signature: 0xef4f1478 0xafb836e1 <21> DW_AT_stmt_list : 0x0 - no DW_AT_producer here to check for workaround of PR debug/45124.