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

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

https://gcc.gnu.org/g:12ba140ee93adc56a3426f0c6c05f4d6c6a3d08e

commit r13-8967-g12ba140ee93adc56a3426f0c6c05f4d6c6a3d08e
Author: Patrick Palka <ppa...@redhat.com>
Date:   Fri Aug 9 09:03:14 2024 -0400

    c++: local class memfn synth from uneval context [PR113063]

    This is essentially a narrow backport of r14-6724-gfced59166f95e9 that
    instead uses cp_evaluated instead of maybe_push_to_top_level to clear
    cp_unevaluated_operand within synthesize_method, which turns out is
    sufficient to also fix the 13.3 regression PR116289 (whose immediate
    trigger is a <compare> change backport r13-7739-gd919309679334a).

            PR c++/113063
            PR c++/116289

    gcc/cp/ChangeLog:

            * method.cc (synthesize_method): Use cp_evaluated.

    gcc/testsuite/ChangeLog:

            * g++.dg/cpp2a/spaceship-synth16.C: New test.
            * g++.dg/cpp2a/spaceship-synth16a.C: New test.

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

Reply via email to