parser.c (make_id_declarator): Add location_t parameter.
authorPaolo Carlini <paolo.carlini@oracle.com>
Wed, 14 Nov 2018 17:50:25 +0000 (17:50 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 14 Nov 2018 17:50:25 +0000 (17:50 +0000)
commit03f3f0f21a76f2009d7b553fd80afae0bfe79c82
tree8a0c5a30a61b4d439890fa9db7c18a9808de5d86
parent357044d275a1f2d50ecd9bade9b8eb18a73cb4c6
parser.c (make_id_declarator): Add location_t parameter.

/cp
2018-11-14  Paolo Carlini  <paolo.carlini@oracle.com>

* parser.c (make_id_declarator): Add location_t parameter.
(cp_parser_lambda_declarator_opt): Adjust call.
(cp_parser_decomposition_declaration): Likewise.
(cp_parser_alias_declaration): Likewise.
(cp_parser_direct_declarator): Likewise.
(cp_parser_member_declaration): Likewise.
(cp_parser_objc_class_ivars): Likewise.
* decl.c (grokdeclarator): Use declarator->id_loc in two error
messages.

/testsuite
2018-11-14  Paolo Carlini  <paolo.carlini@oracle.com>

* g++.dg/cpp0x/nsdmi-union6.C: Test locations too.
* g++.dg/cpp0x/nsdmi6.C: Likewise.
* g++.dg/ext/flexary4.C: Likewise.
* g++.dg/ext/flexary9.C: Likewise.
* g++.dg/other/incomplete2.C: Likewise.
* g++.dg/parse/friend12.C: Likewise.

From-SVN: r266155
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/nsdmi-union6.C
gcc/testsuite/g++.dg/cpp0x/nsdmi6.C
gcc/testsuite/g++.dg/ext/flexary4.C
gcc/testsuite/g++.dg/ext/flexary9.C
gcc/testsuite/g++.dg/other/incomplete2.C
gcc/testsuite/g++.dg/parse/friend12.C