This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/61507] GCC does not compile function with parameter pack.
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 14 Jun 2014 11:59:29 +0000
- Subject: [Bug c++/61507] GCC does not compile function with parameter pack.
- Auto-submitted: auto-generated
- References: <bug-61507-4 at http dot gcc dot gnu dot org/bugzilla/>
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.