diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2019-11-25 13:49:50 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2019-11-25 13:49:50 +0000 |
commit | 3554d8ffc5a55f4173feb30619fab4131ba46032 (patch) | |
tree | 79354a0db21e81c61cc65750b8bcd25d5a9cc10b /libcc1 | |
parent | 5b8d9367684f266c30c280b4d3c98830a88c70ab (diff) | |
download | gcc-3554d8ffc5a55f4173feb30619fab4131ba46032.zip gcc-3554d8ffc5a55f4173feb30619fab4131ba46032.tar.gz gcc-3554d8ffc5a55f4173feb30619fab4131ba46032.tar.bz2 |
typeck.c (cp_build_indirect_ref_1): Add location_t parameter and use it in error messages.
/gcc
2019-11-25 Paolo Carlini <paolo.carlini@oracle.com>
* typeck.c (cp_build_indirect_ref_1): Add location_t parameter
and use it in error messages.
(build_x_indirect_ref): Adjust call.
(build_indirect_ref): Likewise.
(cp_build_fold_indirect_ref): Likewise.
(cp_build_array_ref): Likewise.
* call.c (build_new_op_1): Likewise.
* semantics.c (finish_omp_clauses): Likewise.
(finish_omp_depobj): Likewise.
* typeck2.c (build_x_arrow): Likewise.
* cp-tree.h (cp_build_indirect_ref): Update declaration.
* call.c (build_new_op_1): Use location argument in warning_at.
* typeck.c (cp_build_modify_expr): Consistently use the
location_t argument.
/libcc1
2019-11-25 Paolo Carlini <paolo.carlini@oracle.com>
* libcp1plugin.cc (plugin_pragma_push_user_expression): Update
cp_build_indirect_ref call.
/gcc/testsuite
2019-11-25 Paolo Carlini <paolo.carlini@oracle.com>
* g++.dg/diagnostic/base-operand-non-pointer-1.C: New.
* g++.dg/pr53055.C: Check location too.
* g++.old-deja/g++.bugs/900213_02.C: Likewise.
* g++.old-deja/g++.bugs/900215_02.C: Likewise.
* g++.old-deja/g++.other/badarrow.C: Likewise.
* g++.old-deja/g++.other/deref1.C: Likewise.
* g++.dg/warn/Wenum-compare.C: Check location too.
* g++.dg/cpp0x/initlist26.C: Check location too.
* g++.dg/cpp0x/initlist28.C: Likewise.
* g++.dg/cpp0x/initlist29.C: Likewise.
* g++.dg/cpp0x/initlist33.C: Likewise.
* g++.dg/expr/string-2.C: Likewise.
* g++.dg/other/ptrmem5.C: Likewise.
* g++.old-deja/g++.benjamin/14664-1.C: Likewise.
* g++.old-deja/g++.benjamin/14664-2.C: Likewise.
* g++.old-deja/g++.brendan/init12.C: Likewise.
* g++.old-deja/g++.bugs/900324_04.C: Likewise.
* g++.old-deja/g++.ext/array1.C: Likewise.
* g++.old-deja/g++.jason/rfg17.C: Likewise.
From-SVN: r278685
Diffstat (limited to 'libcc1')
-rw-r--r-- | libcc1/ChangeLog | 5 | ||||
-rw-r--r-- | libcc1/libcp1plugin.cc | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/libcc1/ChangeLog b/libcc1/ChangeLog index d65a0b2..92b5cb7 100644 --- a/libcc1/ChangeLog +++ b/libcc1/ChangeLog @@ -1,3 +1,8 @@ +2019-11-25 Paolo Carlini <paolo.carlini@oracle.com> + + * libcp1plugin.cc (plugin_pragma_push_user_expression): Update + cp_build_indirect_ref call. + 2019-09-27 Maciej W. Rozycki <macro@wdc.com> * configure: Regenerate. diff --git a/libcc1/libcp1plugin.cc b/libcc1/libcp1plugin.cc index d241ea1..232ab97 100644 --- a/libcc1/libcp1plugin.cc +++ b/libcc1/libcp1plugin.cc @@ -630,7 +630,8 @@ plugin_pragma_push_user_expression (cpp_reader *) usable. */ tree this_val = lookup_name (get_identifier ("this")); current_class_ref = !this_val ? NULL_TREE - : cp_build_indirect_ref (this_val, RO_NULL, tf_warning_or_error); + : cp_build_indirect_ref (input_location, this_val, RO_NULL, + tf_warning_or_error); current_class_ptr = this_val; } } |