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/55447] New: insufficient debug info for strong typed enum


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.


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