From a63068b6dd49f620e85c95f1dfed8f7d7473e17c Mon Sep 17 00:00:00 2001 From: Aldy Hernandez Date: Wed, 3 Sep 2008 01:00:04 +0000 Subject: diagnostic.c (error_at): New. * diagnostic.c (error_at): New. * toplev.h (error_at): New prototype. * c-typeck.c (build_array_ref): Call error_at instead of error. Pass location to pedwarn. cp/ * typeck.c (build_array_ref): Use new location argument. * class.c (build_vtbl_ref_1): Pass location to build_array_ref. * call.c (build_new_op): Same. * decl2.c (grok_array_decl): Same. * cp-tree.h (build_array_ref): Add location argument to prototype. From-SVN: r139924 --- gcc/cp/class.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/cp/class.c') diff --git a/gcc/cp/class.c b/gcc/cp/class.c index 5f7d4a2..4f69c7e 100644 --- a/gcc/cp/class.c +++ b/gcc/cp/class.c @@ -627,7 +627,7 @@ build_vtbl_ref_1 (tree instance, tree idx) assemble_external (vtbl); - aref = build_array_ref (vtbl, idx); + aref = build_array_ref (vtbl, idx, input_location); TREE_CONSTANT (aref) |= TREE_CONSTANT (vtbl) && TREE_CONSTANT (idx); return aref; -- cgit v1.1