This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/69623] New: CWG 1388; Invalid deduction of non-trailing template parameter pack
- From: "columbo at gmx-topmail dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 02 Feb 2016 12:20:17 +0000
- Subject: [Bug c++/69623] New: CWG 1388; Invalid deduction of non-trailing template parameter pack
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69623
Bug ID: 69623
Summary: CWG 1388; Invalid deduction of non-trailing template
parameter pack
Product: gcc
Version: 6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: columbo@gmx-topmail.de
Target Milestone: ---
template <typename... T, typename... U>
void f(T..., U...) {}
int main() {f();}
---
This shouldn't compile. Although U is deduced to the empty pack via
[temp.arg.explicit]/3, T isn't, because it isn't trailing. I.e. this code
should yield a deduction failure.
Also see https://llvm.org/bugs/show_bug.cgi?id=26435.