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

--- Comment #7 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-14 branch has been updated by Paul Thomas <[email protected]>:

https://gcc.gnu.org/g:07e97ca16dab6a3c287ab1eb773d8fe165950eba

commit r14-12473-g07e97ca16dab6a3c287ab1eb773d8fe165950eba
Author: Paul Thomas <[email protected]>
Date:   Wed Mar 25 09:28:15 2026 +0000

    Fortran: Invalid error in bounds check of elemental dim [PR119273]

    2026-03-25  Paul Thomas  <[email protected]>

    gcc/fortran
            PR fortran/119273
            * trans-array.cc (expr_contains_impure_fcn): New function.
            (gfc_expr_contains_impure_fcn): New function calling above fcn.
            (array_bound_check_elemental): Add indexse pre-block to se pre.
            Warn if the index expression contains a function not declared
            to be pure.

    gcc/testsuite/
            PR fortran/119273
            * gfortran.dg/pr119273.f90: New test.

    (cherry picked from commit 74732d7434f0714d1f1cb89740595bd5cbbe5f39)

Reply via email to