+2018-03-29 Jason Merrill <jason@redhat.com>
+
+ * pt.c (build_non_dependent_expr): Propagate expr location.
+
2018-03-27 Jason Merrill <jason@redhat.com>
PR c++/85060 - wrong-code with call to base member in template.
gcc_assert (TREE_TYPE (expr) != unknown_type_node);
/* Otherwise, build a NON_DEPENDENT_EXPR. */
- return build1 (NON_DEPENDENT_EXPR, TREE_TYPE (expr), expr);
+ return build1_loc (EXPR_LOCATION (orig_expr), NON_DEPENDENT_EXPR,
+ TREE_TYPE (expr), expr);
}
/* ARGS is a vector of expressions as arguments to a function call.