[Bug fortran/103505] ICE in compare_bound_mpz_t, at fortran/resolve.c:4587 since r8-7594-g078c5aff5ed83e9c

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Dec 4 21:31:38 GMT 2021


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

--- Comment #12 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Harald Anlauf
<anlauf@gcc.gnu.org>:

https://gcc.gnu.org/g:9e9c674dfc6fae8f967341759699b4d75943d256

commit r11-9355-g9e9c674dfc6fae8f967341759699b4d75943d256
Author: Harald Anlauf <anlauf@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 <kargl@gcc.gnu.org>
    (cherry picked from commit f46d32dd29b7623915e31b0508e2e925526fa7d8)


More information about the Gcc-bugs mailing list