[Bug fortran/101762] ICE with "Every subscript of the target specification must be a constant expression"
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jan 25 19:37:44 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101762
--- Comment #9 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Harald Anlauf
<anlauf@gcc.gnu.org>:
https://gcc.gnu.org/g:a5f7e0838e1573f4cc33a6f2c70c60187d7a63af
commit r10-10419-ga5f7e0838e1573f4cc33a6f2c70c60187d7a63af
Author: Harald Anlauf <anlauf@gmx.de>
Date: Sun Jan 9 22:08:14 2022 +0100
Fortran: reject invalid non-constant pointer initialization targets
gcc/fortran/ChangeLog:
PR fortran/101762
* expr.c (gfc_check_pointer_assign): For pointer initialization
targets, check that subscripts and substring indices in
specifications are constant expressions.
gcc/testsuite/ChangeLog:
PR fortran/101762
* gfortran.dg/pr101762.f90: New test.
(cherry picked from commit 2e63128306ff93d8f53119137dd6c28b2defac94)
More information about the Gcc-bugs
mailing list