This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/48534] [C++0x][SFINAE] Compiler break down on explicit scoped enum => bool conversion
- 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: Tue, 12 Apr 2011 00:20:38 +0000
- Subject: [Bug c++/48534] [C++0x][SFINAE] Compiler break down on explicit scoped enum => bool conversion
- Auto-submitted: auto-generated
- References: <bug-48534-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48534
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2011-04-12 00:20:36 UTC ---
Author: jason
Date: Tue Apr 12 00:20:32 2011
New Revision: 172294
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=172294
Log:
PR c++/48534
* cvt.c (ocp_convert): Use build_nop to convert to underlying type
of scoped enum.
Added:
branches/gcc-4_6-branch/gcc/testsuite/g++.dg/cpp0x/enum10.C
Modified:
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