]> gcc.gnu.org Git - gcc.git/commit
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>
Wed, 22 Jun 2022 22:01:27 +0000 (18:01 -0400)
commit349a39f061407ce2339d2ba25da97005f2030c88
tree140436bdc913530adc76b8dc761c6eed4502d9c1
parent445d8deffb6c9bc1f4a5ed0a8e02d7f31d3caec7
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]
This page took 0.05814 seconds and 5 git commands to generate.