[C++ PATCH] Simplify overloads
authorNathan Sidwell <nathan@acm.org>
Wed, 31 Oct 2018 12:42:35 +0000 (12:42 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Wed, 31 Oct 2018 12:42:35 +0000 (12:42 +0000)
commit8e82c473f504c32c840daf09a347795b62b46fa3
treeee26394844175b85128db36fa5c68d04f2c8e7a1
parent0db78d0a5e95572841a98754dca6c3513a3a334d
[C++ PATCH] Simplify overloads

https://gcc.gnu.org/ml/gcc-patches/2018-10/msg02026.html
gcc/cp/
* cp-tree.h (OVL_DEDUP_P): New.
* name-lookup.c (name_lookup::add_overload): Check OVL_DEDUP_P.
(get_class_binding_direct): Likwise.
* tree.c (ovl_make): Propagate OVL_DEDUP_P.
(ovl_copy): Copy it.
(ovl_insert): Do not keep using-decls ordered.
(lookup_maybe_add): Adjust comment.

gcc/testsuite/
* g++.dg/lookup/using60.C: New.

From-SVN: r265679
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/name-lookup.c
gcc/cp/tree.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lookup/using60.C [new file with mode: 0644]