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

--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-14 branch has been updated by Marek Polacek
<mpola...@gcc.gnu.org>:

https://gcc.gnu.org/g:e5ae0a014fbc792a69267af79cfbf580566b436a

commit r14-11405-ge5ae0a014fbc792a69267af79cfbf580566b436a
Author: Marek Polacek <pola...@redhat.com>
Date:   Fri Mar 7 11:26:46 2025 -0500

    c++: ICE with lambda in fold expression in requires [PR119134]

    The r12-8258 fix assumes that DECL_CONTEXT of 'pack' in
    check_for_bare_parameter_packs is going to be an operator()
    but as this test shows, it can be empty.

            PR c++/119134

    gcc/cp/ChangeLog:

            * pt.cc (check_for_bare_parameter_packs): Check DECL_CONTEXT.

    gcc/testsuite/ChangeLog:

            * g++.dg/cpp2a/lambda-uneval24.C: New test.

    Reviewed-by: Jason Merrill <ja...@redhat.com>
    (cherry picked from commit 0e47062ce70d147091f1a97ec94bd6efad92bc5e)

Reply via email to