https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93191
Marek Polacek changed:
What|Removed |Added
Status|WAITING |NEW
--- Comment #5 from Marek Polacek -
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93191
--- Comment #4 from Will Wray ---
Reduced code for deduction of element type
for reference-to-array https://godbolt.org/z/tpkKjN:
int f(auto(&a)[1]);
int g(auto(&a)[ ]);
int test_f = f("");
int test_g = g(""); // error: no match
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93191
--- Comment #3 from Marek Polacek ---
Thanks Will. I think I'll email CWG and ask about it.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93191
--- Comment #2 from Will Wray ---
Actually, the issue now appears to be not with variadic args directly but with
deduction (variadic Args are necessarily deduced, whether via template Arg or
auto placeholder).
So, for single arg, this works with
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93191
Marek Polacek changed:
What|Removed |Added
Status|UNCONFIRMED |WAITING
Last reconfirmed|