diff options
author | Aldy Hernandez <aldyh@redhat.com> | 2008-09-03 01:00:04 +0000 |
---|---|---|
committer | Aldy Hernandez <aldyh@gcc.gnu.org> | 2008-09-03 01:00:04 +0000 |
commit | a63068b6dd49f620e85c95f1dfed8f7d7473e17c (patch) | |
tree | e8cf01ea25ea102fb71086ca128988be07714307 /gcc/cp/cp-tree.h | |
parent | aeb76a25a759aac503037bad8f1dc07b8dd1e9a7 (diff) | |
download | gcc-a63068b6dd49f620e85c95f1dfed8f7d7473e17c.zip gcc-a63068b6dd49f620e85c95f1dfed8f7d7473e17c.tar.gz gcc-a63068b6dd49f620e85c95f1dfed8f7d7473e17c.tar.bz2 |
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
Diffstat (limited to 'gcc/cp/cp-tree.h')
-rw-r--r-- | gcc/cp/cp-tree.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h index a01d981..09b3b2f 100644 --- a/gcc/cp/cp-tree.h +++ b/gcc/cp/cp-tree.h @@ -4911,7 +4911,7 @@ extern tree build_x_indirect_ref (tree, const char *, tsubst_flags_t); extern tree cp_build_indirect_ref (tree, const char *, tsubst_flags_t); -extern tree build_array_ref (tree, tree); +extern tree build_array_ref (tree, tree, location_t); extern tree get_member_function_from_ptrfunc (tree *, tree); extern tree cp_build_function_call (tree, tree, tsubst_flags_t); extern tree build_x_binary_op (enum tree_code, tree, |