c++: local class in nested generic lambda [PR109241]
commitd60cbbfaa9a3ad3bd1f613be95add939c16fc9a1
authorJason Merrill <jason@redhat.com>
Wed, 22 Mar 2023 20:11:47 +0000 (22 16:11 -0400)
committerJason Merrill <jason@redhat.com>
Wed, 26 Apr 2023 21:16:22 +0000 (26 17:16 -0400)
tree8c58be472a7213fc7191b8a389ca495011c091ec
parent1e27e7e0985e055b3d4ec92e93976b709fdbe425
c++: local class in nested generic lambda [PR109241]

The earlier fix for PR109241 avoided the crash by handling a type with no
TREE_BINFO.  But we want to move toward doing the partial substitution of
classes in generic lambdas, so let's take a step in that direction.

PR c++/109241

gcc/cp/ChangeLog:

* pt.cc (instantiate_class_template): Do partially instantiate.
(tsubst_expr): Do call complete_type for partial instantiations.
gcc/cp/pt.cc