This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/66601] RFE: improve diagnostics for failure to deduce template parameter pack that is not in the last position in the parameter list
- 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: Fri, 19 Jun 2015 17:39:06 +0000
- Subject: [Bug c++/66601] RFE: improve diagnostics for failure to deduce template parameter pack that is not in the last position in the parameter list
- Auto-submitted: auto-generated
- References: <bug-66601-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66601
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Clang says:
v.cc:7:5: error: no matching function for call to 'f'
f(1, 2, 3, 4);
^
v.cc:2:8: note: candidate template ignored: couldn't infer template argument
'Y'
void f(X... x, Y y) {
^
1 error generated.
EDG says:
"v.cc", line 7: error: no instance of function template "f" matches the
argument list
argument types are: (int, int, int, int)
f(1, 2, 3, 4);
^