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
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?
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
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
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69623
Andrew Pinski changed:
What|Removed |Added
CC||xmh970252187 at gmail dot com
--- Commen
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69623
Andrew Pinski changed:
What|Removed |Added
CC||kariya_mitsuru at hotmail dot
com
--- C
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69623
Andrew Pinski changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|