[patch, fortran] Fix PR 99345, ICE with DO loop checking
Thomas Koenig
tkoenig@netcologne.de
Sun Mar 14 20:18:51 GMT 2021
Hello world,
the attached, rather obvious patch fixes an ICE on valid which
came about because I did not handle EXEC_IOLENGTH as start of
an I/O statement when checking for the DO loop variable.
This is an 11 regression.
Thanks to Harald for reducing this down to the bare
minimum.
Regression-tested on x86_64-pc-linux-gnu.
OK for trunk?
Best regards
Thomas
Handle EXEC_IOLENGTH in doloop_contained_procedure_code.
gcc/fortran/ChangeLog:
PR fortran/99345
* frontend-passes.c (doloop_contained_procedure_code):
Properly handle EXEC_IOLENGTH.
gcc/testsuite/ChangeLog:
PR fortran/99345
* gfortran.dg/do_check_16.f90: New test.
* gfortran.dg/do_check_17.f90: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p1.diff
Type: text/x-patch
Size: 1913 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20210314/eba54753/attachment.bin>
More information about the Gcc-patches
mailing list