public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/52174] New: Implicit conversion of nullptr to bool
@ 2012-02-08 16:45 lsoltysiak at gmail dot com
  2012-02-08 16:54 ` [Bug c++/52174] " redi at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: lsoltysiak at gmail dot com @ 2012-02-08 16:45 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 52174
           Summary: Implicit conversion of nullptr to bool
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: trivial
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: lsoltysiak@gmail.com


Document 'A name for the null pointer: nullptr (revision 4)' states that
implicit conversion of nullptr to bool is not allowed. Unfortunately in g++
4.7.0, this requirement is not fulfilled. See example below.


if (nullptr) //shall return error, implicit conversion to bool not allowed


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

end of thread, other threads:[~2014-06-03 17:50 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-08 16:45 [Bug c++/52174] New: Implicit conversion of nullptr to bool lsoltysiak at gmail dot com
2012-02-08 16:54 ` [Bug c++/52174] " redi at gcc dot gnu.org
2012-02-08 16:55 ` redi at gcc dot gnu.org
2012-02-08 18:05 ` [Bug c++/52174] [DR 1423] " redi at gcc dot gnu.org
2012-07-20 18:58 ` daniel.kruegler at googlemail dot com
2012-10-05 19:31 ` paolo.carlini at oracle dot com
2014-06-03  3:52 ` paolo.carlini at oracle dot com
2014-06-03 17:49 ` paolo at gcc dot gnu.org
2014-06-03 17:50 ` 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).