https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105908

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-12 branch has been updated by Jason Merrill
<ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:4fcf79c8ab835615aea0687195871ac43b84d156

commit r12-8506-g4fcf79c8ab835615aea0687195871ac43b84d156
Author: Jason Merrill <ja...@redhat.com>
Date:   Wed Jun 22 14:57:21 2022 -0400

    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.

Reply via email to