r278987 - in /trunk: gcc/cp/ChangeLog gcc/cp/ca...

paolo@gcc.gnu.org paolo@gcc.gnu.org
Thu Dec 5 08:59:00 GMT 2019


Author: paolo
Date: Thu Dec  5 08:59:24 2019
New Revision: 278987

URL: https://gcc.gnu.org/viewcvs?rev=278987&root=gcc&view=rev
Log:
/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.

Added:
    trunk/gcc/testsuite/g++.dg/diagnostic/functional-cast-to-array-type-1.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/call.c
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/decl.c
    trunk/gcc/cp/parser.c
    trunk/gcc/cp/pt.c
    trunk/gcc/cp/semantics.c
    trunk/gcc/cp/typeck2.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/cpp0x/auto25.C
    trunk/gcc/testsuite/g++.dg/cpp0x/auto28.C
    trunk/gcc/testsuite/g++.dg/init/reference2.C
    trunk/gcc/testsuite/g++.dg/parse/template2.C
    trunk/gcc/testsuite/g++.dg/template/error8.C
    trunk/gcc/testsuite/g++.old-deja/g++.ns/crash3.C
    trunk/gcc/testsuite/g++.old-deja/g++.ns/template7.C
    trunk/gcc/testsuite/g++.old-deja/g++.pt/crash8.C
    trunk/libcc1/ChangeLog
    trunk/libcc1/libcp1plugin.cc



More information about the Gcc-cvs mailing list