Re: [PATCH] c++: merge default targs for function templates [PR65396]

2022-03-08 Thread Jason Merrill via Gcc-patches
On 3/3/22 16:06, Patrick Palka wrote: We currently merge default template arguments for class templates, but not for function templates. This patch fixes this by splitting out the argument merging logic in redeclare_class_template into a separate function and using it in duplicate_decls as well.

[PATCH] c++: merge default targs for function templates [PR65396]

2022-03-03 Thread Patrick Palka via Gcc-patches
We currently merge default template arguments for class templates, but not for function templates. This patch fixes this by splitting out the argument merging logic in redeclare_class_template into a separate function and using it in duplicate_decls as well. Bootstrapped and regtested on x86_64-p