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

--- Comment #9 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:f46d32dd29b7623915e31b0508e2e925526fa7d8

commit r12-5779-gf46d32dd29b7623915e31b0508e2e925526fa7d8
Author: Harald Anlauf <anl...@gmx.de>
Date:   Thu Dec 2 22:33:49 2021 +0100

    Fortran: improve checking of array specifications

    gcc/fortran/ChangeLog:

            PR fortran/103505
            * array.c (match_array_element_spec): Try to simplify array
            element specifications to improve early checking.
            * expr.c (gfc_try_simplify_expr): New.  Try simplification of an
            expression via gfc_simplify_expr.  When an error occurs, roll
            back.
            * gfortran.h (gfc_try_simplify_expr): Declare it.

    gcc/testsuite/ChangeLog:

            PR fortran/103505
            * gfortran.dg/pr103505.f90: New test.

    Co-authored-by: Steven G. Kargl <ka...@gcc.gnu.org>

Reply via email to