Re: [PATCH] c++: find_template_parameters and PARM_DECLs [PR105797]

2022-06-02 Thread Jason Merrill via Gcc-patches
On 6/1/22 12:44, Patrick Palka wrote: As explained in r11-4959-gde6f64f9556ae3, the atom cache assumes two equivalent expressions (according to cp_tree_equal) must use the same template parameters (according to find_template_parameters). This assumption turned out to not hold for TARGET_EXPR,

Re: [PATCH] c++: find_template_parameters and PARM_DECLs [PR105797]

2022-06-01 Thread Patrick Palka via Gcc-patches
On Wed, 1 Jun 2022, Patrick Palka wrote: > As explained in r11-4959-gde6f64f9556ae3, the atom cache assumes two > equivalent expressions (according to cp_tree_equal) must use the same > template parameters (according to find_template_parameters). This > assumption turned out to not hold for

[PATCH] c++: find_template_parameters and PARM_DECLs [PR105797]

2022-06-01 Thread Patrick Palka via Gcc-patches
As explained in r11-4959-gde6f64f9556ae3, the atom cache assumes two equivalent expressions (according to cp_tree_equal) must use the same template parameters (according to find_template_parameters). This assumption turned out to not hold for TARGET_EXPR, which was addressed by that commit. But