fortran: [PR102595]
commit48f544ad5c98b668d8d345eaafcf09cc0bd44635
authorJerry DeLisle <jvdelisle@gcc.gnu.org>
Sat, 21 Jan 2023 23:19:57 +0000 (21 15:19 -0800)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Sat, 21 Jan 2023 23:23:19 +0000 (21 15:23 -0800)
tree49ad97c23b0cdbe5d5d3b5ac8945f48133a7eaf5
parent046dc9d0d4683bab99d28983d8841ba3c56ef744
fortran: [PR102595]

PR fortran/102595

gcc/fortran/ChangeLog:

* data.cc (gfc_assign_data_value): Remove check for PARAMETER in DATA.
* primary.cc (match_variable): Add check for PARAMETER in DATA.

gcc/testsuite/ChangeLog:

* gfortran.dg/pr88048.f90: Adjust for changed error message.
* gfortran.dg/parameter_data0.f90: New test.
gcc/fortran/data.cc
gcc/fortran/primary.cc
gcc/testsuite/gfortran.dg/parameter_data0.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/pr88048.f90