decl.c (grokdeclarator): Use id_loc and EXPR_LOCATION in a few error messages.
authorPaolo Carlini <paolo.carlini@oracle.com>
Thu, 8 Aug 2019 22:15:40 +0000 (22:15 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 8 Aug 2019 22:15:40 +0000 (22:15 +0000)
commit327d3fd01caab82dcc7720a8de7ee7487c6dbea2
tree563edd9955686b1c80806df365ab9bd10c462096
parentbe15aa901d7d259f2eda238157c55c733af583e5
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: r274220
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/enum20.C
gcc/testsuite/g++.dg/other/friend3.C
gcc/testsuite/g++.dg/parse/dtor5.C
gcc/testsuite/g++.dg/parse/friend7.C
gcc/testsuite/g++.dg/template/error22.C
gcc/testsuite/g++.old-deja/g++.brendan/err-msg5.C