call.c (resolve_args): Use cp_expr_loc_or_input_loc in one place.
authorPaolo Carlini <paolo.carlini@oracle.com>
Mon, 7 Oct 2019 15:37:52 +0000 (15:37 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 7 Oct 2019 15:37:52 +0000 (15:37 +0000)
commit132235c30fbb2f660e93d72578e95aeb3c7a932f
tree05dde3d801b7de601074260a0bb131024753a7bf
parentdcd2ca63ec5c467decb70db983fc19a8329f67dc
call.c (resolve_args): Use cp_expr_loc_or_input_loc in one place.

/cp
2019-10-07  Paolo Carlini  <paolo.carlini@oracle.com>

* call.c (resolve_args): Use cp_expr_loc_or_input_loc in one place.
* decl.c (grokdeclarator): Use id_loc in one place.
* decl2.c (build_anon_union_vars): Use DECL_SOURCE_LOCATION.
* parser.c (cp_parser_delete_expression): Fix the location of the
returned expression.
(cp_parser_throw_expression): Likewise.
* pt.c (determine_specialization): Use DECL_SOURCE_LOCATION.

/testsuite
2019-10-07  Paolo Carlini  <paolo.carlini@oracle.com>

* g++.dg/diagnostic/not-a-function-template-1.C: New.
* g++.dg/template/crash107.C: Adjust expected location.
* g++.dg/template/dependent-expr1.C: Check locations.
* g++.dg/template/error17.C: Check location.

From-SVN: r276661
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/decl.c
gcc/cp/decl2.c
gcc/cp/parser.c
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/diagnostic/not-a-function-template-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/crash107.C
gcc/testsuite/g++.dg/template/dependent-expr1.C
gcc/testsuite/g++.dg/template/error17.C