* semantics.c (finish_call_expr): SET_EXPR_LOCATION.
authorJason Merrill <jason@redhat.com>
Fri, 20 May 2011 18:01:08 +0000 (14:01 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 20 May 2011 18:01:08 +0000 (14:01 -0400)
From-SVN: r173964

gcc/cp/ChangeLog
gcc/cp/semantics.c

index 118022e4d5d26e82b859472518dcbb5e8f47a758..61adf5fb9fd4657ccb480068aaa58a2f16663b85 100644 (file)
@@ -1,3 +1,7 @@
+2011-05-20  Jason Merrill  <jason@redhat.com>
+
+       * semantics.c (finish_call_expr): SET_EXPR_LOCATION.
+
 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
 
        * Make-lang.in (GXX_OBJS): Remove intl.o and version.o.
index 6b62dd2cb53277f5556251fbc0af9c15a54df8e5..02e08e31025a5b9d856cdfd7e2ef060c85f89599 100644 (file)
@@ -2170,6 +2170,7 @@ finish_call_expr (tree fn, VEC(tree,gc) **args, bool disallow_virtual,
       if (TREE_CODE (result) == INDIRECT_REF)
        result = TREE_OPERAND (result, 0);
       result = build_call_vec (TREE_TYPE (result), orig_fn, orig_args);
+      SET_EXPR_LOCATION (result, input_location);
       KOENIG_LOOKUP_P (result) = koenig_p;
       release_tree_vector (orig_args);
       result = convert_from_reference (result);