https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89512
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Fri Aug 30 12:18:01 2019 New Revision: 275130 URL: https://gcc.gnu.org/viewcvs?rev=275130&root=gcc&view=rev Log: Backported from mainline 2019-03-14 Jakub Jelinek <ja...@redhat.com> PR c++/89512 * semantics.c (finish_qualified_id_expr): Reject variable templates. * g++.dg/cpp1y/var-templ61.C: New test. Added: branches/gcc-7-branch/gcc/testsuite/g++.dg/cpp1y/var-templ61.C Modified: branches/gcc-7-branch/gcc/cp/ChangeLog branches/gcc-7-branch/gcc/cp/semantics.c branches/gcc-7-branch/gcc/testsuite/ChangeLog