]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: ICE due to missing locus with data statement for coarray [PR99838]
authorHarald Anlauf <anlauf@gmx.de>
Tue, 3 Jun 2025 18:48:31 +0000 (20:48 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Wed, 4 Jun 2025 16:34:42 +0000 (18:34 +0200)
commitc77dd2d7d40d4fb0d141bf61544d8a57d501f981
treec9d581284edcfc0a44a75f2f965d4151b25b515e
parent55a920367eb34cb33a3ff22f5487a56baa1f93c6
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.

(cherry picked from commit 0768ec0d32f570b1db13ca41b0a1506275c44053)
gcc/fortran/data.cc
gcc/testsuite/gfortran.dg/coarray_data_2.f90 [new file with mode: 0644]