[Bug fortran/98022] [9/10/11 Regression] ICE in gfc_assign_data_value, at fortran/data.c:468 since r9-3803-ga5fbc2f36a291cbe
Paul Richard Thomas
paul.richard.thomas@gmail.com
Sat Dec 26 16:49:57 GMT 2020
Dear All,
I decided to turn this into an unconditional error since the testcase
violates F18(R841). However, the code has been corrected such that, were
the error removed, the expected result would be obtained. This also has the
side effect the error recovery is clean.
Regtested on FC33/x86_64.
Paul
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 <pault@gcc.gnu.org>:
https://gcc.gnu.org/g:c7256c8260afa313e019fd531574ad33ec49b9f6
commit r11-6342-gc7256c8260afa313e019fd531574ad33ec49b9f6
Author: Paul Thomas <pault@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 <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.
More information about the Fortran
mailing list