decl.c (grokvardecl): Add location_t parameter and use it in build_lang_decl_loc...
commit6b9ef867ec3230abcfb67cbe93f3e7dd5ecfbf47
authorPaolo Carlini <paolo@gcc.gnu.org>
Tue, 11 Dec 2018 17:47:56 +0000 (11 17:47 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 11 Dec 2018 17:47:56 +0000 (11 17:47 +0000)
tree6ffee2874d3117bbb498d78689a0ce84e5618d71
parentf214a6415ad5f2a2124b94b7c4abcfe04861595f
decl.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>

* decl.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: r267029
gcc/cp/decl.c