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: colu...@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.

Reply via email to