https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68965
--- Comment #5 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Author: mpolacek Date: Tue Jan 19 17:11:53 2016 New Revision: 232574 URL: https://gcc.gnu.org/viewcvs?rev=232574&root=gcc&view=rev Log: PR c++/68965 * pt.c (tsubst_copy): Mark elements in expanded vector as used. * g++.dg/cpp1y/parameter-pack-1.C: New test. * g++.dg/cpp1y/parameter-pack-2.C: New test. Added: branches/gcc-5-branch/gcc/testsuite/g++.dg/cpp1y/parameter-pack-1.C branches/gcc-5-branch/gcc/testsuite/g++.dg/cpp1y/parameter-pack-2.C Modified: branches/gcc-5-branch/gcc/cp/ChangeLog branches/gcc-5-branch/gcc/cp/pt.c branches/gcc-5-branch/gcc/testsuite/ChangeLog