Bug 55447 - insufficient debug info for strong typed enum
Summary: insufficient debug info for strong typed enum
Status: RESOLVED DUPLICATE of bug 54774
Alias: None
Product: gcc
Classification: Unclassified
Component: debug (show other bugs)
Version: 4.5.2
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-23 12:59 UTC by Pavel Zaytsev
Modified: 2012-11-23 14:49 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pavel Zaytsev 2012-11-23 12:59:32 UTC
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.
Comment 1 Paolo Carlini 2012-11-23 14:49:24 UTC
Dup.

*** This bug has been marked as a duplicate of bug 54774 ***