not-a-function-template-1.C
238 Bytes
-
call.c (resolve_args): Use cp_expr_loc_or_input_loc in one place. · 132235c3
/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
Paolo Carlini committed