decl2.c (delete_sanity): Add location_t parameter and use it throughout.
authorPaolo Carlini <paolo.carlini@oracle.com>
Mon, 30 Dec 2019 13:23:40 +0000 (13:23 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 30 Dec 2019 13:23:40 +0000 (13:23 +0000)
commit04e4997a567142f56dc83eba67b9590c0431d7da
tree4e9336e6cb50d2d78040a5f54b7d2abb69f7a81a
parent9332e5acbf0d79cda8321365a688fc22d7b5e261
decl2.c (delete_sanity): Add location_t parameter and use it throughout.

/gcc/cp
2019-12-30  Paolo Carlini  <paolo.carlini@oracle.com>

* decl2.c (delete_sanity): Add location_t parameter and use
it throughout.
* init.c (build_vec_delete_1): Likewise.
(build_delete): Likewise.
(build_vec_delete): Likewise.
(perform_target_ctor): Adjust call.
(perform_member_init): Likewise.
(build_vec_init): Likewise.
* decl.c (cxx_maybe_build_cleanup): Likewise.
* pt.c (tsubst_copy_and_build): Likewise.
* parser.c (cp_parser_delete_expression): Likewise, pass the
combined_loc.
* cp-tree.h: Update declarations.

/libcc1
2019-12-30  Paolo Carlini  <paolo.carlini@oracle.com>

* libcp1plugin.cc (plugin_build_unary_expr): Update delete_sanity
call.

/gcc/testsuite
2019-12-30  Paolo Carlini  <paolo.carlini@oracle.com>

* g++.dg/init/delete1.C: Check locations too.
* g++.dg/ipa/pr85607.C: Likewise.
* g++.dg/warn/Wdelete-incomplete-1.C: Likewise.
* g++.dg/warn/delete-non-virtual-dtor.C: Likewise.
* g++.dg/warn/incomplete1.C: Likewise.

From-SVN: r279768
15 files changed:
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/decl2.c
gcc/cp/init.c
gcc/cp/parser.c
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/init/delete1.C
gcc/testsuite/g++.dg/ipa/pr85607.C
gcc/testsuite/g++.dg/warn/Wdelete-incomplete-1.C
gcc/testsuite/g++.dg/warn/delete-non-virtual-dtor.C
gcc/testsuite/g++.dg/warn/incomplete1.C
libcc1/ChangeLog
libcc1/libcp1plugin.cc