http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49348
Summary: DW_TAG_template_* DIEs missing from template specializations Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: debug AssignedTo: unassig...@gcc.gnu.org ReportedBy: do...@gcc.gnu.org In the test below from gcc/testsuite/g++.dg/debug/dwarf2/typedef1.C, the DIE sub-tree of the type foo<1> doesn't have any DW_TAG_template_* DIE: template <unsigned int n> struct foo { public: typedef unsigned char type; }; template<> struct foo<1> { typedef enum { e0, e1 } type; }; int main() { foo<1> f; foo<1>::type t = foo<1>::e1; return t; }