[Bug fortran/103610] ICE in gfc_convert_mpz_to_signed, at fortran/simplify.c:193

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Dec 10 20:28:54 GMT 2021


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

--- Comment #6 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:3459ef2e9f9cd4d3ed64c9bc44282534a24987b8

commit r11-9372-g3459ef2e9f9cd4d3ed64c9bc44282534a24987b8
Author: Harald Anlauf <anlauf@gmx.de>
Date:   Tue Dec 7 23:06:41 2021 +0100

    Fortran: dimensions of an array have to be non-negative

    gcc/fortran/ChangeLog:

            PR fortran/103610
            * array.c (spec_dimen_size): Fix simplification of SHAPE:
            dimensions must be non-negative.

    gcc/testsuite/ChangeLog:

            PR fortran/103610
            * gfortran.dg/shape_11.f90: New test.

    (cherry picked from commit 5f7cdea34e118776d0ccd2ff3dda0f5acab18a94)


More information about the Gcc-bugs mailing list