decl.c (cp_finish_decl): Improve error location.
authorPaolo Carlini <paolo.carlini@oracle.com>
Sat, 12 Jan 2019 21:59:03 +0000 (21:59 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Sat, 12 Jan 2019 21:59:03 +0000 (21:59 +0000)
commit062ab4596d7b684f3781db1d484e5a9f1c9f5fd9
tree788579482f5b5a539dbbefb2267a9fd7b1e7311c
parent8d5d3edddf70a8683c10e000817e8d2cd5b8c974
decl.c (cp_finish_decl): Improve error location.

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

* decl.c (cp_finish_decl): Improve error location.
* decl2.c (grokfield): Likewise, improve two locations.

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

* g++.dg/cpp0x/pr62101.C: Test locations too.
* g++.dg/inherit/pure1.C: Likewise.

From-SVN: r267887
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/decl2.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/pr62101.C