cp-tree.h (abstract_class_use): New enum.
authorJason Merrill <jason@redhat.com>
Sun, 17 Mar 2013 02:36:55 +0000 (22:36 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Sun, 17 Mar 2013 02:36:55 +0000 (22:36 -0400)
commit2df663ccedf750ffe5ac481b3fe2aaff0d985a7f
treeeffd0899444bec8cd82684550c9fc410b899aa0a
parent95ffad49d5499e3de6fcd0d261fa3870755995c2
cp-tree.h (abstract_class_use): New enum.

* cp-tree.h (abstract_class_use): New enum.
* typeck2.c (pending_abstract_type): Add use field.
(abstract_virtuals_error_sfinae): Add overloads taking
abstract_class_use instead of tree.
* typeck.c (build_static_cast_1): Call it.
* except.c (is_admissible_throw_operand_or_catch_parameter): Call it.
* pt.c: Adjust calls.
* decl.c (cp_finish_decl): Don't handle functions specially.
(grokdeclarator): Always check return type.
* init.c (build_new_1): Adjust call.

From-SVN: r196735
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/except.c
gcc/cp/init.c
gcc/cp/pt.c
gcc/cp/typeck.c
gcc/cp/typeck2.c
gcc/testsuite/g++.dg/other/abstract5.C [new file with mode: 0644]