decl.c (grokdeclarator): Use id_loc...
authorPaolo Carlini <paolo.carlini@oracle.com>
Sat, 22 Jun 2019 09:36:38 +0000 (09:36 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Sat, 22 Jun 2019 09:36:38 +0000 (09:36 +0000)
commit4b3aa535793363636b0d2819908710fae5025723
treefccf8d6326da30727cc7fd1d9292814bfe8eb635
parentbd5cb8ed428124c44de57dff674f6988dd8c3610
decl.c (grokdeclarator): Use id_loc...

/cp
2019-06-22  Paolo Carlini  <paolo.carlini@oracle.com>

* decl.c (grokdeclarator): Use id_loc, typespec_loc, and
locations[ds_storage_class] in a few additional places.

/testsuite
2019-06-22  Paolo Carlini  <paolo.carlini@oracle.com>

* g++.dg/diagnostic/auto-storage-1.C: New.
* g++.dg/diagnostic/no-type-1.C: Likewise.
* g++.dg/diagnostic/no-type-2.C: Likewise.
* g++.dg/diagnostic/top-level-auto-1.C: Likewise.
* g++.dg/cpp0x/auto9.C: Test some locations too.
* g++.dg/cpp1z/register1.C: Likewise.
* g++.dg/cpp1z/register2.C: Likewise.
* g++.dg/cpp1z/register3.C: Likewise.
* g++.dg/other/error34.C: Likewise.

From-SVN: r272584
12 files changed:
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/auto9.C
gcc/testsuite/g++.dg/cpp1z/register1.C
gcc/testsuite/g++.dg/cpp1z/register2.C
gcc/testsuite/g++.dg/cpp1z/register3.C
gcc/testsuite/g++.dg/diagnostic/auto-storage-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/diagnostic/no-type-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/diagnostic/no-type-2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/diagnostic/top-level-auto-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/other/error34.C