decl2.c (coerce_new_type, [...]): Add location_t parameter and adjust error_at calls.
authorPaolo Carlini <paolo.carlini@oracle.com>
Tue, 12 Jun 2018 21:22:10 +0000 (21:22 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 12 Jun 2018 21:22:10 +0000 (21:22 +0000)
commit2d10ccaa001ba9cb367ee8d8d34512454d6bb293
treeb823a06d95bc72c285482124c51a4d6fadf9a95f
parent4db9ca8624e902b668ef394cf81e68e4ed5faa89
decl2.c (coerce_new_type, [...]): Add location_t parameter and adjust error_at calls.

/cp
2018-06-12  Paolo Carlini  <paolo.carlini@oracle.com>

* decl2.c (coerce_new_type, coerce_delete_type): Add location_t
parameter and adjust error_at calls.
* decl.c (grok_op_properties): Adjust calls.
* cp-tree.h (oerce_new_type, coerce_delete_type): Adjust decls.

/testsuite
2018-06-12  Paolo Carlini  <paolo.carlini@oracle.com>

* g++.dg/init/delete3.C: New.
* g++.dg/init/new49.C: Likewise.
* g++.dg/init/new25.C: Test locations too.
* g++.dg/template/new4.C: Likewise.
* g++.old-deja/g++.jason/operator.C: Likewise.

From-SVN: r261527
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/decl2.c
gcc/testsuite/g++.dg/init/delete3.C [new file with mode: 0644]
gcc/testsuite/g++.dg/init/new25.C
gcc/testsuite/g++.dg/init/new49.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/new4.C
gcc/testsuite/g++.old-deja/g++.jason/operator.C