cp-tree.h (lookup_fnfields_1, [...]): Don't declare.
authorNathan Sidwell <nathan@acm.org>
Fri, 30 Jun 2017 14:50:48 +0000 (14:50 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Fri, 30 Jun 2017 14:50:48 +0000 (14:50 +0000)
commitfe32bb1b5bd2973305a206a29ed4c7c8749d98c5
treefc79ce537be5fa1789fba27c6c91096f4669ec07
parent367e91e1c5c293da8d0999cb2bc5d8cd2c95e6b4
cp-tree.h (lookup_fnfields_1, [...]): Don't declare.

* cp-tree.h (lookup_fnfields_1, class_method_index_for_fn): Don't
declare.
(lookup_all_conversions): Declare.
* class.c (get_basefndecls): Use lookup_fnfields_slot.
* decl.c (register_dtor_fn): Use lookup_fnfields_slot.
* decl2.c (check_class_fn): Use lookup_fnfields_slot.  Rework
diagnostics.
* pt.c (retrieve_specialization): Use lookup_fnfields_slot.
(check_explicit_specialization): Use lookup_fnfields_slot_nolazy,
lookup_all_conversions.
* search.c (lookup_fnfields_1): Make static.
(lookup_all_conversions): New.
(class_method_index_for_fn): Delete.
* semantics.c (classtype_has_nothrow_assign_or_copy_p): Use
lookup_fnfields_slot.

* g++.dg/concepts/memfun-err.C: Adjust diagnostics.
* g++.dg/cpp0x/decltype9.C: Likewise.
* g++.dg/cpp0x/forw_enum9.C: Likewise.
* g++.dg/lookup/decl1.C: Likewise.
* g++.dg/lookup/extern-c-redecl.C: Likewise.
* g++.dg/other/pr28432.C: Likewise.
* g++.dg/parse/crash12.C: Likewise.
* g++.dg/parse/enum3.C: Likewise.
* g++.dg/parse/operator6.C: Likewise.
* g++.dg/template/crash69.C: Likewise.
* g++.dg/template/error27.C: Likewise.
* g++.dg/template/error28.C: Likewise.
* g++.dg/template/memfriend6.C: Likewise.
* g++.old-deja/g++.mike/err1.C: Likewise.
* g++.old-deja/g++.mike/p811.C: Likewise.
* g++.old-deja/g++.other/crash25.C: Likewise.
* g++.old-deja/g++.other/dtor4.C: Likewise.
* g++.old-deja/g++.pt/t37.C: Likewise.

From-SVN: r249843
27 files changed:
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/decl2.c
gcc/cp/pt.c
gcc/cp/search.c
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/concepts/memfun-err.C
gcc/testsuite/g++.dg/cpp0x/decltype9.C
gcc/testsuite/g++.dg/cpp0x/forw_enum9.C
gcc/testsuite/g++.dg/lookup/decl1.C
gcc/testsuite/g++.dg/lookup/extern-c-redecl.C
gcc/testsuite/g++.dg/other/pr28432.C
gcc/testsuite/g++.dg/parse/crash12.C
gcc/testsuite/g++.dg/parse/enum3.C
gcc/testsuite/g++.dg/parse/operator6.C
gcc/testsuite/g++.dg/template/crash69.C
gcc/testsuite/g++.dg/template/error27.C
gcc/testsuite/g++.dg/template/error28.C
gcc/testsuite/g++.dg/template/memfriend6.C
gcc/testsuite/g++.old-deja/g++.mike/err1.C
gcc/testsuite/g++.old-deja/g++.mike/p811.C
gcc/testsuite/g++.old-deja/g++.other/crash25.C
gcc/testsuite/g++.old-deja/g++.other/dtor4.C
gcc/testsuite/g++.old-deja/g++.pt/t37.C