decl.c (grokdeclarator): Use id_loc and EXPR_LOCATION in a few error messages.
authorPaolo Carlini <paolo.carlini@oracle.com>
Wed, 14 Aug 2019 08:56:58 +0000 (08:56 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 14 Aug 2019 08:56:58 +0000 (08:56 +0000)
commit917d611c56a58c38f2b6a7ba808d7a7ae7ed145c
tree248641091d2d1bb1dd64fdf2caaf6953c9437947
parent2803bc3bbca332f53801770715a5b592b2467492
decl.c (grokdeclarator): Use id_loc and EXPR_LOCATION in a few error messages.

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

* decl.c (grokdeclarator): Use id_loc and EXPR_LOCATION in
a few error messages.

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

* g++.dg/cpp0x/enum20.C: Test location(s) too.
* g++.dg/other/friend3.C: Likewise.
* g++.dg/parse/dtor5.C: Likewise.
* g++.dg/parse/friend7.C: Likewise.
* g++.dg/template/error22.C: Likewise.
* g++.old-deja/g++.brendan/err-msg5.C: Likewise.

From-SVN: r274435
gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/conversion/simd4.C