http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48603
Summary: Missing DW_TAG_typedef for anonymous struct in template Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: debug AssignedTo: unassig...@gcc.gnu.org ReportedBy: jan.kratoch...@redhat.com CC: do...@gcc.gnu.org Target: x86_64-unknown-linux-gnu template <typename T> class F { typedef struct { int i; } C; C a; }; F<int> f; g++ (GCC) 4.7.0 20110414 (experimental) <1><1d>: Abbrev Number: 2 (DW_TAG_class_type) <1e> DW_AT_name : (indirect string, offset: 0x11): F<int> <2><29>: Abbrev Number: 3 (DW_TAG_structure_type) <2a> DW_AT_name : C but there is no DW_TAG_typedef anywhere in this CU. A similar case without template was PR debug/47510. There should be also present that GCC extension DW_AT_MIPS_linkage_name for the type.