* pt.c (type_dependent_expression_p): Handle expressions
that refer to variable templates.
From-SVN: r225361
+2015-07-02 Andrew Sutton <andrew.n.sutton@gmail.com>
+
+ * pt.c (type_dependent_expression_p): Handle expressions
+ that refer to variable templates.
+
2015-07-01 Jason Merrill <jason@redhat.com>
* lex.c (init_reswords): s/CXX0X/CXX11/.
return true;
expression = TREE_OPERAND (expression, 0);
}
+
+ if (variable_template_p (expression))
+ return dependent_type_p (TREE_TYPE (expression));
+
gcc_assert (TREE_CODE (expression) == OVERLOAD
|| TREE_CODE (expression) == FUNCTION_DECL);
--- /dev/null
+// { dg-do compile { target c++14 } }
+
+template<typename T>
+bool V1 = true;
+
+template<typename T>
+bool V1<int> = false; // { dg-error "primary template" }