re PR c++/48530 ([C++0x][SFINAE] Hard errors with deleted d'tors)
authorJason Merrill <jason@redhat.com>
Tue, 26 Apr 2011 19:28:25 +0000 (15:28 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 26 Apr 2011 19:28:25 +0000 (15:28 -0400)
commit574cfaa47dbcc2e8d9ea68b83d8dc3122832ff9b
treee83e77854b5490319145c8e64a21bec89b47616f
parent5a87ca71c875b5bc34b9b8bc0ef405cec9b51b51
re PR c++/48530 ([C++0x][SFINAE] Hard errors with deleted d'tors)

PR c++/48530
* decl.c (cxx_maybe_build_cleanup): Add complain parm.
* tree.c (force_target_expr): Add complain parm.
(build_target_expr_with_type): Likewise.
(get_target_expr_sfinae): Split out.
(build_vec_init_expr, bot_manip): Adjust.
* init.c (build_vec_delete, build_vec_delete_1): Add complain parm.
(build_delete, build_dtor_call): Likewise.
(perform_direct_initialization_if_possible): Adjust.
(build_vec_init): Handle error return.
* cvt.c (force_rvalue): Add complain parm.
Call build_special_member_call directly.
* decl2.c (delete_sanity): Add complain parm.
(build_cleanup): Adjust.
* pt.c (tsubst_copy_and_build, tsubst_expr): Adjust.
* semantics.c (finish_stmt_expr_expr): Adjust.
(finish_compound_literal): Adjust.
* parser.c (cp_parser_delete_expression): Adjust.
* typeck2.c (build_functional_cast): Adjust.
* cp-tree.h: Adjust.

From-SVN: r172985
14 files changed:
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/cp-tree.h
gcc/cp/cvt.c
gcc/cp/decl.c
gcc/cp/decl2.c
gcc/cp/init.c
gcc/cp/parser.c
gcc/cp/pt.c
gcc/cp/semantics.c
gcc/cp/tree.c
gcc/cp/typeck2.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/sfinae17.C [new file with mode: 0644]