https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98022
--- Comment #10 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Paul Thomas <pa...@gcc.gnu.org>: https://gcc.gnu.org/g:c7256c8260afa313e019fd531574ad33ec49b9f6 commit r11-6342-gc7256c8260afa313e019fd531574ad33ec49b9f6 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.