https://gcc.gnu.org/bugzilla/show_bug.cgi?id=35095

--- Comment #3 from CVS 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:4024ddbe50c2d1cb54c75304c72817d3fc63cdb6

commit r14-3484-g4024ddbe50c2d1cb54c75304c72817d3fc63cdb6
Author: Harald Anlauf <anl...@gmx.de>
Date:   Thu Aug 24 23:16:25 2023 +0200

    Fortran: improve bounds checking for DATA with implied-do [PR35095]

    gcc/fortran/ChangeLog:

            PR fortran/35095
            * data.cc (get_array_index): Add bounds-checking code and return
error
            status.  Overindexing will be allowed as an extension for
-std=legacy
            and generate an error in standard-conforming mode.
            (gfc_assign_data_value): Use error status from get_array_index for
            graceful error recovery.

    gcc/testsuite/ChangeLog:

            PR fortran/35095
            * gfortran.dg/data_bounds_1.f90: Adjust options to disable
warnings.
            * gfortran.dg/data_bounds_2.f90: New test.

Reply via email to