This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/66365] Regression - GCC 5.1.0: Can't convert std::basic_istream<char> to bool
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 01 Jun 2015 16:44:30 +0000
- Subject: [Bug c++/66365] Regression - GCC 5.1.0: Can't convert std::basic_istream<char> to bool
- Auto-submitted: auto-generated
- References: <bug-66365-4 at http dot gcc dot gnu dot org/bugzilla/>
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));