diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2019-12-05 08:59:24 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2019-12-05 08:59:24 +0000 |
commit | ad774d0d6351789e9e412291cf280c8e3f72bf81 (patch) | |
tree | bd8237a0ca5be9e56071dbd6e347fe6349b1358e /libcc1 | |
parent | ad80ec460bf0747541d016e7159d5262560204ab (diff) | |
download | gcc-ad774d0d6351789e9e412291cf280c8e3f72bf81.zip gcc-ad774d0d6351789e9e412291cf280c8e3f72bf81.tar.gz gcc-ad774d0d6351789e9e412291cf280c8e3f72bf81.tar.bz2 |
typeck2.c (build_functional_cast): Add location_t parameter and use it.
/gcc/cp
2019-12-05 Paolo Carlini <paolo.carlini@oracle.com>
* typeck2.c (build_functional_cast): Add location_t parameter
and use it.
* cp-tree.h: Update declaration.
* parser.c (cp_parser_functional_cast): Adjust call.
* call.c (build_op_delete_call): Likewise.
(build_new_method_call_1): Likewise.
* decl.c (check_initializer): Likewise.
* pt.c (tsubst_copy_and_build): Likewise.
* semantics.c (finish_compound_literal): Likewise.
/libcc1
2019-12-05 Paolo Carlini <paolo.carlini@oracle.com>
* libcp1plugin.cc (plugin_build_expression_list_expr): Adjust
build_functional_cast call.
/testsuite
2019-12-05 Paolo Carlini <paolo.carlini@oracle.com>
* g++.dg/diagnostic/functional-cast-to-array-type-1.C: New.
* g++.dg/cpp0x/auto25.C: Check location(s) too.
* g++.dg/cpp0x/auto28.C: Likewise.
* g++.dg/init/reference2.C: Likewise.
* g++.dg/parse/template2.C: Likewise.
* g++.dg/template/error8.C: Likewise.
* g++.old-deja/g++.ns/crash3.C: Likewise.
* g++.old-deja/g++.ns/template7.C: Likewise.
* g++.old-deja/g++.pt/crash8.C: Likewise.
From-SVN: r278987
Diffstat (limited to 'libcc1')
-rw-r--r-- | libcc1/ChangeLog | 5 | ||||
-rw-r--r-- | libcc1/libcp1plugin.cc | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/libcc1/ChangeLog b/libcc1/ChangeLog index 92b5cb7..169a0a9 100644 --- a/libcc1/ChangeLog +++ b/libcc1/ChangeLog @@ -1,3 +1,8 @@ +2019-12-05 Paolo Carlini <paolo.carlini@oracle.com> + + * libcp1plugin.cc (plugin_build_expression_list_expr): Adjust + build_functional_cast call. + 2019-11-25 Paolo Carlini <paolo.carlini@oracle.com> * libcp1plugin.cc (plugin_pragma_push_user_expression): Update diff --git a/libcc1/libcp1plugin.cc b/libcc1/libcp1plugin.cc index 232ab97..c728310 100644 --- a/libcc1/libcp1plugin.cc +++ b/libcc1/libcp1plugin.cc @@ -3155,7 +3155,7 @@ plugin_build_expression_list_expr (cc1_plugin::connection *self, case CHARS2 ('c', 'v'): // conversion with parenthesized expression list gcc_assert (TYPE_P (type)); args = args_to_tree_list (values_in); - result = build_functional_cast (type, args, tf_error); + result = build_functional_cast (input_location, type, args, tf_error); break; case CHARS2 ('t', 'l'): // conversion with braced expression list |