Re: [PATCH] c++: Fix up ICE in build_min_non_dep_op_overload [PR109319]

2023-03-30 Thread Jason Merrill via Gcc-patches
On 3/30/23 03:47, Jakub Jelinek wrote: Hi! The following testcase ICEs, because grok_array_decl during processing_template_decl handling of a non-dependent subscript emits a -Wcomma-subscript pedwarn, we decide to pass to the single index argument the index expressions as if it was wrapped with

[PATCH] c++: Fix up ICE in build_min_non_dep_op_overload [PR109319]

2023-03-30 Thread Jakub Jelinek via Gcc-patches
Hi! The following testcase ICEs, because grok_array_decl during processing_template_decl handling of a non-dependent subscript emits a -Wcomma-subscript pedwarn, we decide to pass to the single index argument the index expressions as if it was wrapped with () around it, but then when preparing it