This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/48450] [C++0x][SFINAE] Hard errors with static_cast expressions
- 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:02:08 +0000
- Subject: [Bug c++/48450] [C++0x][SFINAE] Hard errors with static_cast expressions
- Auto-submitted: auto-generated
- References: <bug-48450-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48450
--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> 2011-04-08 15:01:54 UTC ---
Author: jason
Date: Fri Apr 8 15:01:50 2011
New Revision: 172191
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=172191
Log:
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.
Added:
branches/gcc-4_6-branch/gcc/testsuite/g++.dg/cpp0x/enum9.C
Modified:
branches/gcc-4_6-branch/gcc/c-family/ChangeLog
branches/gcc-4_6-branch/gcc/c-family/c-common.c
branches/gcc-4_6-branch/gcc/cp/ChangeLog
branches/gcc-4_6-branch/gcc/cp/cvt.c
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog