This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug debug/49348] New: DW_TAG_template_* DIEs missing from template specializations


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;
}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]