public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/67216] New: false is still a null pointer constant
@ 2015-08-14 12:45 potswa at mac dot com
  2015-08-14 13:09 ` [Bug c++/67216] " redi at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: potswa at mac dot com @ 2015-08-14 12:45 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67216

            Bug ID: 67216
           Summary: false is still a null pointer constant
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: potswa at mac dot com
  Target Milestone: ---

false should not convert to pointer types since C++11. This program is ill
formed in C++03 and well formed in C++11.

struct s {
    s( long ) {}
};

struct t {
    t( void * ) {}
}

void foo(s) {}
void foo(t) {}

int main() {
    foo(false);
}


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

end of thread, other threads:[~2015-08-18 18:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-14 12:45 [Bug c++/67216] New: false is still a null pointer constant potswa at mac dot com
2015-08-14 13:09 ` [Bug c++/67216] " redi at gcc dot gnu.org
2015-08-14 18:58 ` pravasimeet999 at yahoo dot com
2015-08-17 21:40 ` paolo at gcc dot gnu.org
2015-08-17 21:42 ` paolo.carlini at oracle dot com
2015-08-18 18:05 ` redi 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).