https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98022
--- Comment #14 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-9 branch has been updated by Paul Thomas <pa...@gcc.gnu.org>: https://gcc.gnu.org/g:5c84d9e37d6a647bc2bbc83ac28250a4902a86ea commit r9-9197-g5c84d9e37d6a647bc2bbc83ac28250a4902a86ea Author: Paul Thomas <pa...@gcc.gnu.org> Date: Sat Dec 26 16:44:24 2020 +0000 Fortran: Correction to recent patch in light of comments [PR98022]. 2020-12-26 Paul Thomas <pa...@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. (cherry picked from commit c7256c8260afa313e019fd531574ad33ec49b9f6)