decl.c (grokdeclarator): Use declarator->id_loc in diagnostic about flexible array...
authorPaolo Carlini <paolo.carlini@oracle.com>
Tue, 30 Oct 2018 18:29:49 +0000 (18:29 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 30 Oct 2018 18:29:49 +0000 (18:29 +0000)
commit190facef83142f0b226b72d93abca4ee21347bfa
treed3d2bc5b9a6a866b4c8419aac91c37fcda2cab36
parent6a6e0926b2477d2d99c92589878b9ced4abeb114
decl.c (grokdeclarator): Use declarator->id_loc in diagnostic about flexible array members.

/cp
2018-10-30  Paolo Carlini  <paolo.carlini@oracle.com>

* decl.c (grokdeclarator): Use declarator->id_loc in diagnostic
about flexible array members.

/testsuite
2018-10-30  Paolo Carlini  <paolo.carlini@oracle.com>

* g++.dg/cpp1z/has-unique-obj-representations1.C: Test location too.
* g++.dg/ext/flexarray-mangle-2.C: Likewise.
* g++.dg/ext/flexarray-mangle.C: Likewise.
* g++.dg/ext/flexarray-subst.C: Likewise.
* g++.dg/ext/flexary10.C: Likewise.
* g++.dg/ext/flexary11.C: Likewise.
* g++.dg/ext/flexary14.C: Likewise.
* g++.dg/ext/flexary16.C: Likewise.
* g++.dg/ext/flexary26.C: Likewise.
* g++.dg/ext/flexary27.C: Likewise.
* g++.dg/ext/flexary7.C: Likewise.
* g++.dg/ext/pr71290.C: Likewise.

From-SVN: r265636
15 files changed:
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1z/has-unique-obj-representations1.C
gcc/testsuite/g++.dg/ext/flexarray-mangle-2.C
gcc/testsuite/g++.dg/ext/flexarray-mangle.C
gcc/testsuite/g++.dg/ext/flexarray-subst.C
gcc/testsuite/g++.dg/ext/flexary10.C
gcc/testsuite/g++.dg/ext/flexary11.C
gcc/testsuite/g++.dg/ext/flexary14.C
gcc/testsuite/g++.dg/ext/flexary16.C
gcc/testsuite/g++.dg/ext/flexary26.C
gcc/testsuite/g++.dg/ext/flexary27.C
gcc/testsuite/g++.dg/ext/flexary7.C
gcc/testsuite/g++.dg/ext/pr71290.C