decl.c (start_decl): Improve error location.
authorPaolo Carlini <paolo.carlini@oracle.com>
Fri, 11 Jan 2019 09:02:43 +0000 (09:02 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Fri, 11 Jan 2019 09:02:43 +0000 (09:02 +0000)
commita8766179a75fd18a1636b80425f81c0cd54d6151
tree5955fc153ea7ffedd82733d5ca159d2fcaa96dbd
parent7dc3df082b9edc8d78e0cd3846027afc345aebc7
decl.c (start_decl): Improve error location.

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

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

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

* g++.dg/diagnostic/extern-initialized.C: New.
* g++.dg/ext/dllimport-initialized.C: Likewise.

From-SVN: r267830
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/diagnostic/extern-initialized.C [new file with mode: 0644]
gcc/testsuite/g++.dg/ext/dllimport-initialized.C [new file with mode: 0644]