Hello Thomas, hello World,

On 14.03.21 21:18, Thomas Koenig via Fortran wrote:
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?

OK. Thanks for the patch and thanks to Martin & Harald for the test-case
reduction and for Mathias "doko" for the reporting!

Tobias

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.

-----------------
Mentor Graphics (Deutschland) GmbH, Arnulfstrasse 201, 80634 München 
Registergericht München HRB 106955, Geschäftsführer: Thomas Heurung, Frank 
Thürauf

Reply via email to