re PR c++/48450 ([C++0x][SFINAE] Hard errors with static_cast expressions)
authorJason Merrill <jason@redhat.com>
Thu, 7 Apr 2011 21:46:48 +0000 (17:46 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 7 Apr 2011 21:46:48 +0000 (17:46 -0400)
commit1ee44b260d206b5ebc51466d672adffcdcebf4f2
tree52443856b69beaa5ce88f9b5f24330703dd3cf16
parent39e7722bbfdce2277b92dd8d0df62399051c7c7a
re PR c++/48450 ([C++0x][SFINAE] Hard errors with static_cast expressions)

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.

From-SVN: r172138
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/cp/ChangeLog
gcc/cp/cvt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/enum9.C [new file with mode: 0644]