Re: [PATCH] c++: Fix tsubsting CLASS_PLACEHOLDER_TEMPLATE [PR95434]

2021-01-19 Thread Jason Merrill via Gcc-patches
On 1/19/21 11:29 AM, Patrick Palka wrote: Here, during partial instantiation of the generic lambda, tsubst_copy on the CLASS_PLACEHOLDER_TEMPLATE of the CTAD placeholder U{0} yields a (level-lowered) TEMPLATE_TEMPLATE_PARM rather than the corresponding TEMPLATE_DECL. This later confuses do_class

[PATCH] c++: Fix tsubsting CLASS_PLACEHOLDER_TEMPLATE [PR95434]

2021-01-19 Thread Patrick Palka via Gcc-patches
Here, during partial instantiation of the generic lambda, tsubst_copy on the CLASS_PLACEHOLDER_TEMPLATE of the CTAD placeholder U{0} yields a (level-lowered) TEMPLATE_TEMPLATE_PARM rather than the corresponding TEMPLATE_DECL. This later confuses do_class_deduction which expects that the CLASS_PLAC