[Bug c++/69623] Invalid deduction of non-trailing template parameter pack

2022-03-15 Thread xmh970252187 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69623 --- Comment #9 from jim x --- After reading [temp.deduct.call] p1 more carefully, I think you're right. Since the first function parameter pack does not participate in template argument deduction, the deduction will start to perform from the seco

[Bug c++/69623] Invalid deduction of non-trailing template parameter pack

2022-03-15 Thread ed at catmur dot uk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69623 --- Comment #8 from Ed Catmur --- (In reply to jim x from comment #7) > > auto f(auto..., auto a, auto...) { return a; } > > IIUC, this is just disallowed since all arguments would only match the first > function parameter pack. Maybe?

[Bug c++/69623] Invalid deduction of non-trailing template parameter pack

2022-03-14 Thread xmh970252187 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69623 --- Comment #7 from jim x --- In a simple way, the rule just requires that, for a function template, the template parameter that is declared after a template parameter pack should either appear in the parameter-declaration-clause before the templ

[Bug c++/69623] Invalid deduction of non-trailing template parameter pack

2022-03-14 Thread ed at catmur dot uk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69623 Ed Catmur changed: What|Removed |Added CC||ed at catmur dot uk --- Comment #6 from Ed C

[Bug c++/69623] Invalid deduction of non-trailing template parameter pack

2021-12-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69623 --- Comment #5 from Andrew Pinski --- Full testcase where both declarations should be an error: template void f() { } // error template void g() { } // error

[Bug c++/69623] Invalid deduction of non-trailing template parameter pack

2021-12-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69623 Andrew Pinski changed: What|Removed |Added CC||xmh970252187 at gmail dot com --- Commen

[Bug c++/69623] Invalid deduction of non-trailing template parameter pack

2021-08-11 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69623 Andrew Pinski changed: What|Removed |Added CC||kariya_mitsuru at hotmail dot com --- C

[Bug c++/69623] Invalid deduction of non-trailing template parameter pack

2021-08-11 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69623 Andrew Pinski changed: What|Removed |Added CC||smw at gcc dot gnu.org --- Comment #2 fr

[Bug c++/69623] Invalid deduction of non-trailing template parameter pack

2016-08-21 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69623 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|