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

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

https://gcc.gnu.org/g:0e47062ce70d147091f1a97ec94bd6efad92bc5e

commit r15-8005-g0e47062ce70d147091f1a97ec94bd6efad92bc5e
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>

Reply via email to