This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/48107] [C++0x] no explicit conversion from scoped enumeration type to bool
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 8 Apr 2011 15:15:06 +0000
- Subject: [Bug c++/48107] [C++0x] no explicit conversion from scoped enumeration type to bool
- Auto-submitted: auto-generated
- References: <bug-48107-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48107
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |jason at gcc dot gnu.org
Resolution| |FIXED
Target Milestone|--- |4.6.1
--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> 2011-04-08 15:14:57 UTC ---
Fixed by r172138
PR c++/48450
* c-family/c-common.c (c_common_truthvalue_conversion): Don't ignore
conversion from C++0x scoped enum.
* cp/cvt.c (ocp_convert): Handle converting scoped enum to bool.