Re: [PATCH] c++: deduction guides and ttp rewriting [PR102479]

2021-09-27 Thread Jason Merrill via Gcc-patches
On 9/27/21 10:44, Patrick Palka wrote: The problem here is ultimately that rewrite_tparm_list when rewriting a TEMPLATE_TEMPLATE_PARM introduces a tree cycle in the rewritten ttp that structural_comptypes can't cope with. In particular the DECL_TEMPLATE_PARMS of a ttp's TEMPLATE_DECL normally ca

[PATCH] c++: deduction guides and ttp rewriting [PR102479]

2021-09-27 Thread Patrick Palka via Gcc-patches
The problem here is ultimately that rewrite_tparm_list when rewriting a TEMPLATE_TEMPLATE_PARM introduces a tree cycle in the rewritten ttp that structural_comptypes can't cope with. In particular the DECL_TEMPLATE_PARMS of a ttp's TEMPLATE_DECL normally captures an empty parameter list at its own