]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: generic lambda, local class, __func__ [PR108242]
authorJason Merrill <jason@redhat.com>
Thu, 16 Mar 2023 19:11:25 +0000 (15:11 -0400)
committerJason Merrill <jason@redhat.com>
Tue, 18 Apr 2023 20:44:27 +0000 (16:44 -0400)
commit890d711a2477119a34cf435f6159b6253b124374
tree5cd671b81b3c84703c50cfc98b6e9f13c37edc6a
parent2f9bb63c5e82512ba9e53f4d5e67949c100d8830
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.
gcc/cp/pt.cc
gcc/testsuite/g++.dg/cpp1y/lambda-generic-func2.C [new file with mode: 0644]