decl.c (grok_reference_init): Improve error location.
authorPaolo Carlini <paolo.carlini@oracle.com>
Wed, 9 Jan 2019 08:52:38 +0000 (08:52 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 9 Jan 2019 08:52:38 +0000 (08:52 +0000)
commit73075e06b7591dacd413e2e9a944d9fe6722dde9
tree3280ad692033296f7b65c3472f7de5c8831ef08d
parent0ac6a741dda62dbc1c19738aa7dd21d8efc996f5
decl.c (grok_reference_init): Improve error location.

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

* decl.c (grok_reference_init): Improve error location.
(grokdeclarator): Likewise, improve two locations.

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

* g++.dg/diagnostic/constexpr2.C: New.
* g++.dg/diagnostic/ref3.C: Likewise.

From-SVN: r267756
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/diagnostic/constexpr2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/diagnostic/ref3.C [new file with mode: 0644]