decl.c (grokdeclarator): Use declarator->id_loc in five error_at calls.
authorPaolo Carlini <paolo.carlini@oracle.com>
Thu, 30 May 2019 07:09:41 +0000 (07:09 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 30 May 2019 07:09:41 +0000 (07:09 +0000)
commit7797a622445d27891471141a2385c42401ccc099
tree719e3f817587bfecaa3939cba3596b221bd49d6e
parent979ca9cc9e674d046d377fc1584ce279582af491
decl.c (grokdeclarator): Use declarator->id_loc in five error_at calls.

/cp
2019-05-31  Paolo Carlini  <paolo.carlini@oracle.com>

* decl.c (grokdeclarator): Use declarator->id_loc in five
error_at calls.

/testsuite
2019-05-31  Paolo Carlini  <paolo.carlini@oracle.com>

* g++.dg/cpp0x/alias-decl-18.C: Test location too.
* g++.dg/cpp0x/udlit-nofunc-neg.C: Likewise.
* g++.dg/parse/crash59.C: Likewise.
* g++.dg/parse/error38.C: Likewise.
* g++.dg/parse/error39.C: Likewise.
* g++.dg/template/crash31.C: Likewise.
* g++.dg/template/operator8.C: Likewise.
* g++.dg/template/operator9.C: Likewise.

From-SVN: r271762
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/alias-decl-18.C
gcc/testsuite/g++.dg/cpp0x/udlit-nofunc-neg.C
gcc/testsuite/g++.dg/parse/crash59.C
gcc/testsuite/g++.dg/parse/error38.C
gcc/testsuite/g++.dg/parse/error39.C
gcc/testsuite/g++.dg/template/crash31.C
gcc/testsuite/g++.dg/template/operator8.C
gcc/testsuite/g++.dg/template/operator9.C