decl2.c (grokvardecl): Add location_t parameter and use it in build_lang_decl_loc...
authorPaolo Carlini <paolo.carlini@oracle.com>
Tue, 11 Dec 2018 17:46:42 +0000 (17:46 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 11 Dec 2018 17:46:42 +0000 (17:46 +0000)
commit296e379a5087be494b8fc35011954c5ea073ba83
tree1fd334d7a40bb637b120e030df5cd6f3a056719a
parentccef67160c2c467b3101e0d3e7f08ea996624fc6
decl2.c (grokvardecl): Add location_t parameter and use it in build_lang_decl_loc and build_decl calls.

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

* decl2.c (grokvardecl): Add location_t parameter and use it
in build_lang_decl_loc and build_decl calls.
(grokdeclarator): Move up loc declaration and use it in the
grokvardecl call too.

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

* g++.dg/pr53037-4.C: Test the first two locations too.

From-SVN: r267027
gcc/cp/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/pr53037-4.C