https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65195
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> --- Author: jason Date: Thu Aug 6 04:09:55 2015 New Revision: 226656 URL: https://gcc.gnu.org/viewcvs?rev=226656&root=gcc&view=rev Log: PR c++/65195 PR c++/66619 * semantics.c (finish_id_expression): Call convert_from_reference for variable template. Added: branches/gcc-5-branch/gcc/testsuite/g++.dg/cpp1y/var-templ37.C branches/gcc-5-branch/gcc/testsuite/g++.dg/cpp1y/var-templ40.C Modified: branches/gcc-5-branch/gcc/cp/ChangeLog branches/gcc-5-branch/gcc/cp/semantics.c