Created attachment 35651 [details] Minimal testcase $ g++-trunk --version g++-trunk (GCC) 5.1.0 Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ cat main.cpp template<typename> int i {}; template<typename... Xs> void f() { // error: expansion pattern 'i<Xs>' contains no argument packs int is[] = { i<Xs>... }; } int main() { f<void, void, void>(); } $ g++-trunk -std=c++14 main.cpp main.cpp: In function 'void f()': main.cpp:8:23: error: expansion pattern 'i<Xs>' contains no argument packs int is[] = { i<Xs>... };
Fixed on the trunk by r225692.
*** Bug 65706 has been marked as a duplicate of this bug. ***
Author: jason Date: Thu Aug 6 04:09:49 2015 New Revision: 226655 URL: https://gcc.gnu.org/viewcvs?rev=226655&root=gcc&view=rev Log: PR c++/66336 * pt.c (find_parameter_packs_r): Handle variable templates. (variable_template_specialization_p): New. * cp-tree.h: Declare it. Added: branches/gcc-5-branch/gcc/testsuite/g++.dg/cpp1y/var-templ33.C Modified: branches/gcc-5-branch/gcc/cp/ChangeLog branches/gcc-5-branch/gcc/cp/cp-tree.h branches/gcc-5-branch/gcc/cp/pt.c
Fixed for 5.3.