Fortran: Correction to recent patch in light of comments [PR98022].
authorPaul Thomas <pault@gcc.gnu.org>
Sat, 26 Dec 2020 16:44:24 +0000 (16:44 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Sat, 26 Dec 2020 16:44:24 +0000 (16:44 +0000)
commitc7256c8260afa313e019fd531574ad33ec49b9f6
tree268a0bf07007205e5b2445f2f53133891f887fee
parent0175d45d14b1f9ebc4c15ea5bafcda655c37fc35
Fortran: Correction to recent patch in light of comments [PR98022].

2020-12-26  Paul Thomas  <pault@gcc.gnu.org>

gcc/fortran
PR fortran/98022
* data.c (gfc_assign_data_value): Throw an error for inquiry
references. Follow with corrected code that would provide the
expected result and provides clean error recovery.

gcc/testsuite/
PR fortran/98022
* gfortran.dg/data_inquiry_ref.f90: Change to dg-compile and
add errors for inquiry references.
gcc/fortran/data.c
gcc/testsuite/gfortran.dg/data_inquiry_ref.f90