This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/43932] conditional operator can't convert 0 to pointer



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]