Re: [PATCH] c++: ICE during constrained template friend matching [PR105064]

2022-03-28 Thread Jason Merrill via Gcc-patches
On 3/28/22 09:29, Patrick Palka wrote: Here during declaration matching for the two constrained template friends, we crash from maybe_substitute_reqs_for because the second friend doesn't yet have DECL_TEMPLATE_INFO set (we're being called indirectly from push_template_decl). As far as I can tel

[PATCH] c++: ICE during constrained template friend matching [PR105064]

2022-03-28 Thread Patrick Palka via Gcc-patches
Here during declaration matching for the two constrained template friends, we crash from maybe_substitute_reqs_for because the second friend doesn't yet have DECL_TEMPLATE_INFO set (we're being called indirectly from push_template_decl). As far as I can tell, this situation happens only when decla