2010-10-27 Jason Merrill <jason@redhat.com>
+ * except.c (build_throw): Set EXPR_LOCATION.
+
* tree.c (build_cplus_new): Handle CONSTRUCTOR.
* semantics.c (finish_compound_stmt): Avoid creating an
{
if (cfun)
current_function_returns_abnormally = 1;
- return build_min (THROW_EXPR, void_type_node, exp);
+ exp = build_min (THROW_EXPR, void_type_node, exp);
+ SET_EXPR_LOCATION (exp, input_location);
+ return exp;
}
if (exp == null_node)
}
exp = build1 (THROW_EXPR, void_type_node, exp);
+ SET_EXPR_LOCATION (exp, input_location);
return exp;
}