[Bug libstdc++/16396] ostream << volatile char* converts to ostream << bool
pcarlini at suse dot de
gcc-bugzilla@gcc.gnu.org
Mon Aug 23 00:05:00 GMT 2004
------- Additional Comments From pcarlini at suse dot de 2004-08-23 00:05 -------
The explanation is actually rather straightforward: roughly, missing a perfect
match, a match with minor adjustments and a match with promotion, a match with
standard conversions is looked for: there is a standard conversion from pointer
to bool, *not* to other integral types.
For more details, see Vendevoorde/Josuttis appendix B and the standard, sec 4.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16396
More information about the Gcc-bugs
mailing list