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++/33314] Ill-formed program compiles without error. Ternary (expr.cond) operands, ambiguous conversion.



------- Comment #1 from pinskia at gcc dot gnu dot org  2007-09-06 20:04 -------
> s1 is "surprise"

No it is not.

std::cout << s1 << std::endl;

Calls s1.operator const char* and not s1.operator<< .


-- 


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


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