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

--- Comment #7 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-14 branch has been updated by Patrick Palka
<ppa...@gcc.gnu.org>:

https://gcc.gnu.org/g:659f32ea9de57661f8a37dcfb0b9a01bfe29acce

commit r14-10696-g659f32ea9de57661f8a37dcfb0b9a01bfe29acce
Author: Patrick Palka <ppa...@redhat.com>
Date:   Fri Sep 20 17:37:03 2024 -0400

    c++: CWG 2789 and usings [PR116492]

    For GCC 14, narrowly fix this PR by implementing the missing

      - if they are member functions, both are direct members of the same
        class, and

    part of CWG 2789 for constructors only.

            PR c++/116492
            DR 2789

    gcc/cp/ChangeLog:

            * call.cc (cand_parms_match): Return false for constructors that
            come from different classes.

    gcc/testsuite/ChangeLog:

            * g++.dg/cpp2a/concepts-inherit-ctor12.C: New test.

    Reviewed-by: Jason Merrill <ja...@redhat.com>

Reply via email to