This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/16396] ostream << volatile char* converts to ostream << bool
- From: "pcarlini at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Aug 2004 00:05:53 -0000
- Subject: [Bug libstdc++/16396] ostream << volatile char* converts to ostream << bool
- References: <20040706232548.16396.ramsdell@mitre.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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