decl.c (grokfndecl): Add const cp_decl_specifier_seq* parameter...
authorPaolo Carlini <paolo.carlini@oracle.com>
Wed, 20 Jun 2018 19:07:37 +0000 (19:07 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 20 Jun 2018 19:07:37 +0000 (19:07 +0000)
commitf2cb6e64c920bb2f4e8a1ce9cb300385b53349ed
tree889831642faaa4526b1397f33ff7336f063a13ad
parent829c6349e96c5bfa8603aaef8858b38e237a2f33
decl.c (grokfndecl): Add const cp_decl_specifier_seq* parameter...

/cp
2018-06-20  Paolo Carlini  <paolo.carlini@oracle.com>

* decl.c (grokfndecl): Add const cp_decl_specifier_seq* parameter;
tidy handling of a null location_t argument; use proper location
information in a few additional error messages.
(grokdeclarator): Update calls.

/testsuite
2018-06-20  Paolo Carlini  <paolo.carlini@oracle.com>

* g++.dg/template/friend65.C: New.
* g++.dg/cpp0x/main1.C: Likewise.
* g++.dg/other/main2.C: Likewise.
* g++.dg/other/main3.C: Likewise.
* g++.dg/template/friend42.C: Test location too.
* g++.dg/concepts/decl-diagnose.C: Likewise.
* g++.dg/warn/main-2.C: Update.

From-SVN: r261816
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/concepts/decl-diagnose.C
gcc/testsuite/g++.dg/cpp0x/main1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/other/main2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/other/main3.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/friend42.C
gcc/testsuite/g++.dg/template/friend65.C [new file with mode: 0644]
gcc/testsuite/g++.dg/warn/main-2.C