[PATCH] Fortran: ICE due to missing locus with data statement for coarray [PR99838]
Harald Anlauf
anlauf@gmx.de
Tue Jun 3 18:43:10 GMT 2025
Dear all,
here's a fix for another one of Gerhard's "torture tests" that triggers
an ICE with -Warray-temporaries. The cause was that the locus was not
set for the initializer of the symbol for the testcase. The obvious
fix is to then use the locus from the array constructor generated for
the data values.
Regtested on x86_64-pc-linux-gnu. OK for mainline?
Thanks,
Harald
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr99838.diff
Type: text/x-patch
Size: 1941 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/fortran/attachments/20250603/8e2d139c/attachment-0001.bin>
More information about the Fortran
mailing list