public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/55447] New: insufficient debug info for strong typed enum
@ 2012-11-23 13:00 pavel.zaytsev at oracle dot com
  2012-11-23 14:50 ` [Bug debug/55447] " paolo.carlini at oracle dot com
  0 siblings, 1 reply; 2+ messages in thread
From: pavel.zaytsev at oracle dot com @ 2012-11-23 13:00 UTC (permalink / raw)
  To: gcc-bugs


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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug debug/55447] insufficient debug info for strong typed enum
  2012-11-23 13:00 [Bug debug/55447] New: insufficient debug info for strong typed enum pavel.zaytsev at oracle dot com
@ 2012-11-23 14:50 ` paolo.carlini at oracle dot com
  0 siblings, 0 replies; 2+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-11-23 14:50 UTC (permalink / raw)
  To: gcc-bugs


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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE

--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-11-23 14:49:24 UTC ---
Dup.

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-11-23 14:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-23 13:00 [Bug debug/55447] New: insufficient debug info for strong typed enum pavel.zaytsev at oracle dot com
2012-11-23 14:50 ` [Bug debug/55447] " paolo.carlini at oracle dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).