+2015-07-10 Jason Merrill <jason@redhat.com>
+
+ * parser.c (cp_parser_template_id): SET_EXPR_LOCATION.
+
2015-07-10 Eric Botcazou <ebotcazou@adacore.com>
* decl2.c (cpp_check): Revert latest change.
else if (variable_template_p (templ))
{
template_id = lookup_template_variable (templ, arguments);
+ if (TREE_CODE (template_id) == TEMPLATE_ID_EXPR)
+ SET_EXPR_LOCATION (template_id, next_token->location);
}
else
{
|| BASELINK_P (templ)));
template_id = lookup_template_function (templ, arguments);
+ if (TREE_CODE (template_id) == TEMPLATE_ID_EXPR)
+ SET_EXPR_LOCATION (template_id, next_token->location);
}
/* If parsing tentatively, replace the sequence of tokens that makes