[Bug c++/63759] New: did not use DW_TAG_template_alias for template alias
chihin.ko at oracle dot com
gcc-bugzilla@gcc.gnu.org
Thu Nov 6 01:37:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63759
Bug ID: 63759
Summary: did not use DW_TAG_template_alias for template alias
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: chihin.ko at oracle dot com
Created attachment 33905
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33905&action=edit
test case
For attached test case t.cc, g++ did not generate appropriate debug info for
template alias, instead it used DW_TAG_typedef :
/net/dv104/export/tools/gcc/4.9.0/$VARIANT1/bin/g++ -m64 -std=c++11 -Xlinker
-R/net/dv104/export/tools/gcc/4.9.0/$VARIANT1/lib/amd64 t.cc
< 0><0x0000000b> DW_TAG_compile_unit
DW_AT_producer "GNU C++ 4.9.0 -m64
-mtune=generic -march=x86-64 -g -std=c++11"
DW_AT_language DW_LANG_C_plus_plus
DW_AT_name "t.cc"
...
...
< 1><0x00004a55> DW_TAG_typedef
DW_AT_name "PrintStr"
DW_AT_decl_file 0x00000001
.../gnu/intel-Linux/t.cc
DW_AT_decl_line 0x00000010
DW_AT_type <0x000044b8>
Here is the DWARF4 doc for DW_TAG_template_alias
http://www.dwarfstd.org/ShowIssue.php?issue=090112.1
More information about the Gcc-bugs
mailing list