https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67130
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> --- Author: jason Date: Thu Aug 6 14:28:26 2015 New Revision: 226677 URL: https://gcc.gnu.org/viewcvs?rev=226677&root=gcc&view=rev Log: PR c++/67130 PR c++/67131 PR c++/66260 * mangle.c (write_expression) [TEMPLATE_ID_EXPR]: Handle variable templates. * pt.c (tsubst_copy_and_build): Check for argument substitution failure. Added: branches/gcc-5-branch/gcc/testsuite/g++.dg/cpp1y/var-templ42.C branches/gcc-5-branch/gcc/testsuite/g++.dg/cpp1y/var-templ43.C Modified: branches/gcc-5-branch/gcc/cp/ChangeLog branches/gcc-5-branch/gcc/cp/mangle.c branches/gcc-5-branch/gcc/cp/pt.c