This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/55447] New: insufficient debug info for strong typed enum
- From: "pavel.zaytsev at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 23 Nov 2012 12:59:32 +0000
- Subject: [Bug debug/55447] New: insufficient debug info for strong typed enum
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55447
Bug #: 55447
Summary: insufficient debug info for strong typed enum
Classification: Unclassified
Product: gcc
Version: 4.5.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: debug
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: pavel.zaytsev@oracle.com
For strong typed enum, there is no type and class information.
# cat t.cc
enum class Color : long { red = 200, green = 300 };
int main()
{
Color c;
return 0;
}
#g++ -g -std=c++0x t.cc
< 1><0x00000025> DW_TAG_enumeration_type
DW_AT_name "Color"
DW_AT_byte_size 0x00000004
DW_AT_decl_file 0x00000001
DW_AT_decl_line 0x00000001
DW_AT_sibling <0x00000040>
Should have a DW_AT_enum_class and DW_AT_type under DW_TAG_enumeration_type.