This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]