decl.c (grokdeclarator): Use locations[ds_storage_class] in error messages about...
authorPaolo Carlini <paolo.carlini@oracle.com>
Wed, 16 Jan 2019 16:16:54 +0000 (16:16 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 16 Jan 2019 16:16:54 +0000 (16:16 +0000)
commit59ec4914775d554368879fd1d67b416daf9406d4
tree1d9d4e2d4eb41935df02b412718cc62e7355e86e
parent2ea2a74dceda4b4ddf7433f2c1d9ab72aa2bd0b0
decl.c (grokdeclarator): Use locations[ds_storage_class] in error messages about ill-formed uses of mutable.

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

* decl.c (grokdeclarator): Use locations[ds_storage_class] in
error messages about ill-formed uses of mutable.

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

* g++.dg/other/pr33558.C: Test location too.
* g++.dg/other/pr33558-2.C: Likewise.
* g++.dg/parse/crash4.C: Likewise.
* g++.old-deja/g++.brendan/err-msg11.C: Likewise.
* g++.old-deja/g++.mike/p7635.C: Likewise.
* g++.old-deja/g++.other/decl6.C: Likewise.

From-SVN: r267978
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/pr33558-2.C
gcc/testsuite/g++.dg/other/pr33558.C
gcc/testsuite/g++.dg/parse/crash4.C
gcc/testsuite/g++.old-deja/g++.brendan/err-msg11.C
gcc/testsuite/g++.old-deja/g++.mike/p7635.C
gcc/testsuite/g++.old-deja/g++.other/decl6.C