c++: lambda capture dependent type [PR82980]
commit53e7252140c95afc859ade521a61ab4115d7fb11
authorJason Merrill <jason@redhat.com>
Thu, 14 Apr 2022 18:09:13 +0000 (14 14:09 -0400)
committerJason Merrill <jason@redhat.com>
Fri, 29 Apr 2022 21:24:05 +0000 (29 17:24 -0400)
tree4b0abed6452ad8e4f080bf9e8baf826e8aeed480
parent8189838d823ea65e560c573d38a65edc12f5c2e3
c++: lambda capture dependent type [PR82980]

The stage 4 patch limited direct propagation of dependent type to capture
field/proxy to the "current instantiation", but many more types should be
suitable as well.

PR c++/82980

gcc/cp/ChangeLog:

* lambda.cc (type_deducible_expression_p): Allow more types.
gcc/cp/lambda.cc