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


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54774

             Bug #: 54774
           Summary: insufficient debug info for strong typed enum
    Classification: Unclassified
           Product: gcc
           Version: 4.6.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: chihin.ko@oracle.com


Created attachment 28320
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28320
compileable c++ test case and dwarf dump

For strong typed enum, there is no  type information:

#include <iostream>

enum UI: unsigned int
{
        None = 0,
        Single = 1,
        Multiple = 0xFFFF0000U
};

 <1><26aa>: Abbrev Number: 69 (DW_TAG_enumeration_type)
     DW_AT_name        : UI
     DW_AT_byte_size   : 4
     DW_AT_decl_file   : 1
     DW_AT_decl_line   : 3
     DW_AT_sibling     : <26cc>

  Should have a DW_AT_type : <unsigned int 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]