https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98022
--- Comment #12 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-10 branch has been updated by Paul Thomas <pa...@gcc.gnu.org>: https://gcc.gnu.org/g:0184527ae9f81ef3865703b43212963b95ae174d commit r10-9291-g0184527ae9f81ef3865703b43212963b95ae174d 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)