Fortran: error recovery on invalid CLASS(), PARAMETER declarations [PR105243]
commit4c233cabbe388a6b8957c1507e129090e9267ceb
authorHarald Anlauf <anlauf@gmx.de>
Wed, 29 Jun 2022 19:36:17 +0000 (29 21:36 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Thu, 30 Jun 2022 18:46:12 +0000 (30 20:46 +0200)
treeec234429c9d62ad37f7f05292bdeca03d8706544
parentd489ec082ea214109ff54071410f8cd00344e654
Fortran: error recovery on invalid CLASS(), PARAMETER declarations [PR105243]

gcc/fortran/ChangeLog:

PR fortran/103137
PR fortran/103138
PR fortran/103693
PR fortran/105243
* decl.cc (gfc_match_data_decl): Reject CLASS entity declaration
when it is given the PARAMETER attribute.

gcc/testsuite/ChangeLog:

PR fortran/103137
PR fortran/103138
PR fortran/103693
PR fortran/105243
* gfortran.dg/class_58.f90: Fix test.
* gfortran.dg/class_73.f90: New test.

Co-authored-by: Steven G. Kargl <kargl@gcc.gnu.org>
gcc/fortran/decl.cc
gcc/testsuite/gfortran.dg/class_58.f90
gcc/testsuite/gfortran.dg/class_73.f90 [new file with mode: 0644]