[Bug c++/66365] Regression - GCC 5.1.0: Can't convert std::basic_istream<char> to bool
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jun 1 16:44:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66365
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Upstream need to fix their code, there is no implicit conversion from
basic_istream to bool in C++11, so gcc-5 is correct to reject the code.
return static_cast<bool>(is.read(static_cast<char *>(p), len));
More information about the Gcc-bugs
mailing list