decl.c (grokdeclarator): Use declspecs->locations and declarator->id_loc in a few...
authorPaolo Carlini <paolo.carlini@oracle.com>
Mon, 16 Sep 2019 23:04:10 +0000 (23:04 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 16 Sep 2019 23:04:10 +0000 (23:04 +0000)
commit61b204bf24adfe62d58400e60732bc569bc2164a
treeea1077703877a85ebba600225a35d7f3769dfcd4
parentb3a77aa6ffa0186a966ad53360aa1485c783800a
decl.c (grokdeclarator): Use declspecs->locations and declarator->id_loc in a few error messages.

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

* decl.c (grokdeclarator): Use declspecs->locations and
declarator->id_loc in a few error messages.
* pt.c (finish_member_template_decl): Use DECL_SOURCE_LOCATION.
(push_template_decl_real): Likewise.

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

* g++.dg/ext/int128-6.C: New.
* c-c++-common/pr68107.c: Test location(s).
* g++.dg/other/large-size-array.C: Likewise.
* g++.dg/template/dtor2.C: Likewise.
* g++.dg/template/error9.C: Likewise.
* g++.dg/tls/diag-2.C: Likewise.
* g++.dg/tls/diag-4.C: Likewise.
* g++.dg/tls/diag-5.C: Likewise.
* g++.old-deja/g++.pt/memtemp71.C: Likewise.

From-SVN: r275759
13 files changed:
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/pr68107.c
gcc/testsuite/g++.dg/ext/int128-6.C [new file with mode: 0644]
gcc/testsuite/g++.dg/other/large-size-array.C
gcc/testsuite/g++.dg/template/dtor2.C
gcc/testsuite/g++.dg/template/error9.C
gcc/testsuite/g++.dg/tls/diag-2.C
gcc/testsuite/g++.dg/tls/diag-4.C
gcc/testsuite/g++.dg/tls/diag-5.C
gcc/testsuite/g++.old-deja/g++.pt/memtemp71.C