diff options
author | Paolo Carlini <paolo@gcc.gnu.org> | 2020-01-07 17:58:18 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2020-01-07 17:58:18 +0000 |
commit | 87d3f828de27930f88ce5b76c9ae222c89064cca (patch) | |
tree | 0ef2f63dd66b1f11dbf259112bc90605ba83aae6 /libcc1 | |
parent | 5561b41dd67630273479d7661638c5c36a5abb5b (diff) | |
download | gcc-87d3f828de27930f88ce5b76c9ae222c89064cca.zip gcc-87d3f828de27930f88ce5b76c9ae222c89064cca.tar.gz gcc-87d3f828de27930f88ce5b76c9ae222c89064cca.tar.bz2 |
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
Diffstat (limited to 'libcc1')
-rw-r--r-- | libcc1/ChangeLog | 4 | ||||
-rw-r--r-- | libcc1/libcp1plugin.cc | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/libcc1/ChangeLog b/libcc1/ChangeLog index dea6e6a..ff99459 100644 --- a/libcc1/ChangeLog +++ b/libcc1/ChangeLog @@ -1,3 +1,7 @@ +2020-01-07 Paolo Carlini <paolo.carlini@oracle.com> + + * libcp1plugin.cc (plugin_build_new_expr): Update build_new call. + 2020-01-01 Jakub Jelinek <jakub@redhat.com> Update copyright years. diff --git a/libcc1/libcp1plugin.cc b/libcc1/libcp1plugin.cc index 452f4ce..b466b34 100644 --- a/libcc1/libcp1plugin.cc +++ b/libcc1/libcp1plugin.cc @@ -3258,8 +3258,8 @@ plugin_build_new_expr (cc1_plugin::connection *self, if (!template_dependent_p) processing_template_decl--; - tree result = build_new (&placement, type, nelts, &initializer, - global_scope_p, tf_error); + tree result = build_new (input_location, &placement, type, nelts, + &initializer, global_scope_p, tf_error); if (template_dependent_p) processing_template_decl--; |