Re: [PATCH] c++: Lambda in friend of constrained class [PR94645]

2020-04-23 Thread Jason Merrill via Gcc-patches
On 4/23/20 4:09 PM, Patrick Palka wrote: In the testcase below, when grokfndecl processes the operator() decl for the lambda inside the friend function foo, processing_template_decl is rightly 1, but template_class_depth on the lambda's closure type incorrectly returns 0 instead of 1. Since proc

[PATCH] c++: Lambda in friend of constrained class [PR94645]

2020-04-23 Thread Patrick Palka via Gcc-patches
In the testcase below, when grokfndecl processes the operator() decl for the lambda inside the friend function foo, processing_template_decl is rightly 1, but template_class_depth on the lambda's closure type incorrectly returns 0 instead of 1. Since processing_template_decl > template_class_depth