This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/43932] conditional operator can't convert 0 to pointer
- From: "redi at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Apr 2010 13:34:06 -0000
- Subject: [Bug c++/43932] conditional operator can't convert 0 to pointer
- References: <bug-43932-5469@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from redi at gcc dot gnu dot org 2010-04-29 13:34 -------
That example 'f' is equivalent to this, which also compiles:
int* g(bool b) { return int(b ? 0 : 0); }
that's /definitely/ wrong
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43932