[Bug c++/61507] GCC does not compile function with parameter pack.

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Jun 14 11:59:00 GMT 2014


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61507

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2014-06-14
     Ever confirmed|0                           |1

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Cong Hou from comment #0)
> As the type is explicitly specified, why GCC would like to "deduce" it?

Probably because with a variadic template there could be additional arguments
that haven't been explicitly specified and so need to be deduced.  However, in
this case the number of function arguments should tell the compiler the pack
only contains one type, and therefore nothing more needs to be deduced.



More information about the Gcc-bugs mailing list