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: unassig...@gcc.gnu.org ReportedBy: chihin...@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); }