decl.c (start_decl): Improve permerror location.
authorPaolo Carlini <paolo.carlini@oracle.com>
Tue, 8 Jan 2019 09:41:36 +0000 (09:41 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 8 Jan 2019 09:41:36 +0000 (09:41 +0000)
commit30fa2068a3d4317b5b2282eb2e37e98aedfcbf4e
tree58729404710a899345234b2f3e6adf5af24eef53
parente32ba3f7abf2f2be6cac6d9785a5e8cf9f2a47c5
decl.c (start_decl): Improve permerror location.

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

* decl.c (start_decl): Improve permerror location.

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

* g++.dg/diagnostic/out-of-class-redeclaration.C: New.

From-SVN: r267675
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/diagnostic/out-of-class-redeclaration.C [new file with mode: 0644]