https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99838
--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:0768ec0d32f570b1db13ca41b0a1506275c44053 commit r16-1090-g0768ec0d32f570b1db13ca41b0a1506275c44053 Author: Harald Anlauf <anl...@gmx.de> Date: Tue Jun 3 20:48:31 2025 +0200 Fortran: ICE due to missing locus with data statement for coarray [PR99838] PR fortran/99838 gcc/fortran/ChangeLog: * data.cc (gfc_assign_data_value): For a new initializer use the location from the constructor as fallback. gcc/testsuite/ChangeLog: * gfortran.dg/coarray_data_2.f90: New test.