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

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

https://gcc.gnu.org/g:779e002a1dc4ee7c688b7fb497375185cbcfec87

commit r14-11593-g779e002a1dc4ee7c688b7fb497375185cbcfec87
Author: Jason Merrill <ja...@redhat.com>
Date:   Thu Apr 10 14:34:35 2025 -0400

    c++: nested lambda capture pack [PR119345]

    tsubst_stmt already registers a local capture proxy as a
    local_specialization of both an outer capture proxy and the captured
    variable; we also need to do that in add_extra_args.

            PR c++/119345

    gcc/cp/ChangeLog:

            * pt.cc (add_extra_args): Also register a specialization
            of the captured variable.

    gcc/testsuite/ChangeLog:

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

    (cherry picked from commit 5957b9919c9ecda6e4ca198086f8bb9ea215232c)

Reply via email to