Re: [PATCH] c++: allow variadic operator[] for C++23 [PR103460]

2022-03-10 Thread Jason Merrill via Gcc-patches
On 3/10/22 04:34, Jakub Jelinek wrote: Hi! wg21.link/p2128 removed "with exactly one parameter" from over.sub section. grok_op_properties has for that the last 2 lines in: case OVL_OP_FLAG_BINARY: if (arity != 2) { if (operator_code == ARRAY_REF && cxx_dialect >=

[PATCH] c++: allow variadic operator[] for C++23 [PR103460]

2022-03-10 Thread Jakub Jelinek via Gcc-patches
Hi! wg21.link/p2128 removed "with exactly one parameter" from over.sub section. grok_op_properties has for that the last 2 lines in: case OVL_OP_FLAG_BINARY: if (arity != 2) { if (operator_code == ARRAY_REF && cxx_dialect >= cxx23) break; but unfortunately