re PR c++/48449 ([C++0x][SFINAE] Hard errors during value-initialization expressions)
authorJason Merrill <jason@redhat.com>
Thu, 7 Apr 2011 21:47:10 +0000 (17:47 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 7 Apr 2011 21:47:10 +0000 (17:47 -0400)
commit2b8497cd7aef2697b00b7e57ae3ea787f7cbe251
tree283bd508dcdce7684a9caf0e7849659f2fbe008e
parent6cdb14286db4ace59759757ce2b1fab2d03a04c2
re PR c++/48449 ([C++0x][SFINAE] Hard errors during value-initialization expressions)

PR c++/48449
* typeck2.c (build_functional_cast): Check complain consistently.
Use build_value_init and abstract_virtuals_error_sfinae.
(abstract_virtuals_error_sfinae): Split out.
* cp-tree.h: Declare it.
* init.c (build_new_1): Use it.
(build_value_init_noctor): Handle FUNCTION_TYPE.

From-SVN: r172141
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/init.c
gcc/cp/typeck2.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/sfinae8.C [new file with mode: 0644]