This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/49348] New: DW_TAG_template_* DIEs missing from template specializations
- From: "dodji at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 9 Jun 2011 18:37:56 +0000
- Subject: [Bug debug/49348] New: DW_TAG_template_* DIEs missing from template specializations
- Auto-submitted: auto-generated
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: unassigned@gcc.gnu.org
ReportedBy: dodji@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;
}