[C++ PATCH] Simplify class member lookup
authorNathan Sidwell <nathan@acm.org>
Wed, 1 May 2019 11:38:54 +0000 (11:38 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Wed, 1 May 2019 11:38:54 +0000 (11:38 +0000)
commit9a54a0d916273cf9b1be93ee5b9bed207bd3ef40
tree0f009dad0bed690608819485a85f9248299e16d9
parent243dd48646beb0de2a2aac8236eef8fa60f5b99d
[C++ PATCH] Simplify class member lookup

https://gcc.gnu.org/ml/gcc-patches/2019-05/msg00004.html
gcc/cp/
* name-lookup.h (get_class_binding_direct): Change final arg to
bool.
(get_class_binding): Likewise.
* name-lookup.c (get_class_binding_direct): Replace TYPE_OR_FNS
arg with WANT_TYPE bool.  Simplify.
(get_class_binding): Adjust final arg.
* decl.c (reshape_init_class): Adjust get_class_binding calls.

gcc/testsuite/
* g++.dg/cpp0x/decltype9.C: Adjust expected diagnostics.

From-SVN: r270765
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/name-lookup.c
gcc/cp/name-lookup.h
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/decltype9.C