public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/56236] New: incorrect debug info for decltype(nullptr)
@ 2013-02-07 5:32 chihin.ko at oracle dot com
2013-02-07 8:34 ` [Bug debug/56236] " jakub at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: chihin.ko at oracle dot com @ 2013-02-07 5:32 UTC (permalink / raw)
To: gcc-bugs
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);
}
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug debug/56236] incorrect debug info for decltype(nullptr)
2013-02-07 5:32 [Bug debug/56236] New: incorrect debug info for decltype(nullptr) chihin.ko at oracle dot com
@ 2013-02-07 8:34 ` jakub at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-02-07 8:34 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56236
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |jakub at gcc dot gnu.org
Resolution| |FIXED
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-02-07 08:33:42 UTC ---
No, what g++ does is correct. Please see
http://wiki.dwarfstd.org/index.php?title=C%2B%2B0x:_Null_pointer
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-02-07 8:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-07 5:32 [Bug debug/56236] New: incorrect debug info for decltype(nullptr) chihin.ko at oracle dot com
2013-02-07 8:34 ` [Bug debug/56236] " jakub at gcc dot gnu.org
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).