c++: class scope function lookup [PR105908]
authorJason Merrill <jason@redhat.com>
Wed, 22 Jun 2022 18:57:21 +0000 (14:57 -0400)
committerJason Merrill <jason@redhat.com>
Thu, 23 Jun 2022 03:46:32 +0000 (23:46 -0400)
commit4fcf79c8ab835615aea0687195871ac43b84d156
treeea24b4cc76f8ca2500e44e17f66fd03ff8945f0b
parentbb1a6d92989a50df13b1a21085c86625089c9e53
c++: class scope function lookup [PR105908]

In r12-1273 for PR91706, I removed the code in get_class_binding that
stripped BASELINK.  This testcase demonstrates that we still need to strip
it in outer_binding before putting the overload set in IDENTIFIER_BINDING,
for compatibility with bindings added directly for declarations.

PR c++/105908

gcc/cp/ChangeLog:

* name-lookup.cc (outer_binding): Strip BASELINK.

gcc/testsuite/ChangeLog:

* g++.dg/cpp0x/trailing16.C: New test.
gcc/cp/name-lookup.cc
gcc/testsuite/g++.dg/cpp0x/trailing16.C [new file with mode: 0644]