init.c (build_new): Add location_t parameter and use it throughout.
authorPaolo Carlini <paolo@gcc.gnu.org>
Tue, 7 Jan 2020 17:58:18 +0000 (17:58 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 7 Jan 2020 17:58:18 +0000 (17:58 +0000)
commit87d3f828de27930f88ce5b76c9ae222c89064cca
tree0ef2f63dd66b1f11dbf259112bc90605ba83aae6
parent5561b41dd67630273479d7661638c5c36a5abb5b
init.c (build_new): Add location_t parameter and use it throughout.

/gcc/cp
2020-01-07  Paolo Carlini  <paolo.carlini@oracle.com>

* init.c (build_new): Add location_t parameter and use it throughout.
(build_raw_new_expr): Likewise.
* parser.c (cp_parser_new_expression): Pass the combined_loc.
* pt.c (tsubst_copy_and_build): Adjust call.
* cp-tree.h: Update declarations.

/libcc1
2020-01-07  Paolo Carlini  <paolo.carlini@oracle.com>

* libcp1plugin.cc (plugin_build_new_expr): Update build_new call.

/gcc/testsuite
2020-01-07  Paolo Carlini  <paolo.carlini@oracle.com>

* g++.old-deja/g++.bugs/900208_03.C: Check locations too.
* g++.old-deja/g++.bugs/900519_06.C: Likewise.

From-SVN: r279963
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/init.c
gcc/cp/parser.c
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.bugs/900208_03.C
gcc/testsuite/g++.old-deja/g++.bugs/900519_06.C
libcc1/ChangeLog
libcc1/libcp1plugin.cc