[Bug debug/56236] New: incorrect debug info for decltype(nullptr)

chihin.ko at oracle dot com gcc-bugzilla@gcc.gnu.org
Thu Feb 7 05:32:00 GMT 2013


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

             Bug #: 56236
           Summary: incorrect debug info for decltype(nullptr)
    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


g++ does not resolve decltype(nullptr) to base type nullptr_t, instead it
generate following: 

  < 1><0x000005d3>    DW_TAG_unspecified_type
                      DW_AT_name                  "decltype(nullptr)"

g++ should generate something like this:

< 1><0x000005d3>    DW_TAG_base_type
                      DW_AT_name                  "nullptr_t"
                      DW_AT_encoding              DW_ATE_boolean
                      DW_AT_byte_size             0x00000004

main() {
    int i;
    decltype(nullptr) np;

    np = 0;
    i = sizeof(np);
}



More information about the Gcc-bugs mailing list