Re: [PATCH] c++: ttp matching with constrained auto parm [PR99909]

2021-09-28 Thread Jason Merrill via Gcc-patches
On 9/28/21 15:15, Patrick Palka wrote: Here, when unifying TT with S, processing_template_decl is unset, and this foils the dependence checks in do_auto_deduction for avoiding checking constraints on an auto when the initializer is dependent. This patch fixes this issue by making sure processing

[PATCH] c++: ttp matching with constrained auto parm [PR99909]

2021-09-28 Thread Patrick Palka via Gcc-patches
Here, when unifying TT with S, processing_template_decl is unset, and this foils the dependence checks in do_auto_deduction for avoiding checking constraints on an auto when the initializer is dependent. This patch fixes this issue by making sure processing_template_decl is set during the call to