decl.c (check_var_type): Add location_t parameter and use it.
authorPaolo Carlini <paolo.carlini@oracle.com>
Thu, 29 Aug 2019 09:01:26 +0000 (09:01 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 29 Aug 2019 09:01:26 +0000 (09:01 +0000)
commitc3bad34748071038343f8b88a30128faee7c5c0c
tree32e4883fbeb50f98458eed38571a0e03fffe8f4d
parentf48e4da3259d52076f86aa081cece40dfda7b235
decl.c (check_var_type): Add location_t parameter and use it.

/cp
2019-08-29  Paolo Carlini  <paolo.carlini@oracle.com>

* decl.c (check_var_type): Add location_t parameter and use it.
(grokdeclarator): Adjust call.
* pt.c (tsubst_decl): Likewise.
* cp-tree.h: Adjust declaration.

/testsuite
2019-08-29  Paolo Carlini  <paolo.carlini@oracle.com>

* g++.dg/spellcheck-typenames.C: Adjust expected locations.
* g++.dg/cpp0x/pr84676.C: Check locations.
* g++.dg/other/pr88187.C: Likewise.
* g++.dg/parse/crash13.C: Likewise.
* g++.dg/parse/crash46.C: Likewise.
* g++.dg/parse/template28.C: Likewise.
* g++.dg/parse/typename4.C: Likewise.

From-SVN: r275025
12 files changed:
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/pr84676.C
gcc/testsuite/g++.dg/other/pr88187.C
gcc/testsuite/g++.dg/parse/crash13.C
gcc/testsuite/g++.dg/parse/crash46.C
gcc/testsuite/g++.dg/parse/template28.C
gcc/testsuite/g++.dg/parse/typename4.C
gcc/testsuite/g++.dg/spellcheck-typenames.C