Re: [PATCH] c++: abbreviated function template friend matching [PR96106]

2020-07-29 Thread Jason Merrill via Gcc-patches
On 7/20/20 4:18 PM, Patrick Palka wrote: In the below testcase, duplicate_decls wasn't merging the tsubsted friend declaration for 'void add(auto)' with its definition, because reduce_template_parm_level (during tsubst_friend_function) lost the DECL_VIRTUAL_P flag on the invented 'auto' template

[PATCH] c++: abbreviated function template friend matching [PR96106]

2020-07-20 Thread Patrick Palka via Gcc-patches
In the below testcase, duplicate_decls wasn't merging the tsubsted friend declaration for 'void add(auto)' with its definition, because reduce_template_parm_level (during tsubst_friend_function) lost the DECL_VIRTUAL_P flag on the invented 'auto' template parameter, which made template_heads_equiva