Re: [PATCH] c++: Error recovery in merge_default_template_args [PR108206]

2023-01-04 Thread Jason Merrill via Gcc-patches
On 1/4/23 04:32, Jakub Jelinek wrote: Hi! We ICE on the following testcase during error recovery, both new_parm and old_parm are error_mark_node, the ICE is on error ("redefinition of default argument for %q+#D", new_parm); inform (DECL_SOURCE_LOCATION (old_parm),

[PATCH] c++: Error recovery in merge_default_template_args [PR108206]

2023-01-04 Thread Jakub Jelinek via Gcc-patches
Hi! We ICE on the following testcase during error recovery, both new_parm and old_parm are error_mark_node, the ICE is on error ("redefinition of default argument for %q+#D", new_parm); inform (DECL_SOURCE_LOCATION (old_parm), "original definition appeared her