[Bug c++/61953] [C++11] The template parameter pack of a function template should be the last template parameter

2021-08-11 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61953

Andrew Pinski  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |DUPLICATE

--- Comment #3 from Andrew Pinski  ---
Dup of bug 69623.

*** This bug has been marked as a duplicate of bug 69623 ***

[Bug c++/61953] [C++11] The template parameter pack of a function template should be the last template parameter

2021-08-04 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61953

--- Comment #2 from Andrew Pinski  ---
Clang and GCC both accept the code slightly.
ICC accepts the code with a warning:
(1): warning #2922: template parameter "U" cannot be used because it
follows a parameter pack and cannot be deduced from the parameters of function
template "f"
  template void f() { }
^

(2): warning #2922: template parameter "U" cannot be used because it
follows a parameter pack and cannot be deduced from the parameters of function
template "g"
  template void g() { }
 ^


MSVC rejects the code:
(1): error C3547: template parameter 'U' cannot be used because it
follows a template parameter pack and cannot be deduced from the function
parameters of 'f'
(1): note: see declaration of 'U'
(2): error C3547: template parameter 'U' cannot be used because it
follows a template parameter pack and cannot be deduced from the function
parameters of 'g'
(2): note: see declaration of 'U'

[Bug c++/61953] [C++11] The template parameter pack of a function template should be the last template parameter

2014-12-13 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61953

Ville Voutilainen  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2014-12-14
 Ever confirmed|0   |1


[Bug c++/61953] [C++11] The template parameter pack of a function template should be the last template parameter

2014-12-13 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61953

Ville Voutilainen  changed:

   What|Removed |Added

   Keywords||accepts-invalid
 CC||ville.voutilainen at gmail dot 
com
  Known to fail||4.8.2, 4.9.1, 5.0

--- Comment #1 from Ville Voutilainen  ---
Clang also silently accepts the code.