[Bug c++/93191] Conversions to arrays of unknown bound P0388 Fails for variadic args

2020-02-27 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93191 Marek Polacek changed: What|Removed |Added Status|WAITING |NEW --- Comment #5 from Marek Polacek -

[Bug c++/93191] Conversions to arrays of unknown bound P0388 Fails for variadic args

2020-02-20 Thread wjwray at gmail dot com
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

[Bug c++/93191] Conversions to arrays of unknown bound P0388 Fails for variadic args

2020-02-12 Thread mpolacek at gcc dot gnu.org
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.

[Bug c++/93191] Conversions to arrays of unknown bound P0388 Fails for variadic args

2020-02-12 Thread wjwray at gmail dot com
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

[Bug c++/93191] Conversions to arrays of unknown bound P0388 Fails for variadic args

2020-02-11 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93191 Marek Polacek changed: What|Removed |Added Status|UNCONFIRMED |WAITING Last reconfirmed|