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

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

https://gcc.gnu.org/g:890d711a2477119a34cf435f6159b6253b124374

commit r12-9437-g890d711a2477119a34cf435f6159b6253b124374
Author: Jason Merrill <ja...@redhat.com>
Date:   Thu Mar 16 15:11:25 2023 -0400

    c++: generic lambda, local class, __func__ [PR108242]

    Here we are trying to do name lookup in a deferred instantiation of t() and
    failing to find __func__.  tsubst_expr already tries to instantiate members
    of local classes, but was failing with the partial instantiation of generic
    lambdas.

            PR c++/108242

    gcc/cp/ChangeLog:

            * pt.cc (tsubst_expr) [TAG_DEFN]: Handle partial instantiation.

    gcc/testsuite/ChangeLog:

            * g++.dg/cpp1y/lambda-generic-func2.C: New test.

Reply via email to