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

--- 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:88a2a09dd4529107e7ef7a6e7ce43acf96457173

commit r13-5636-g88a2a09dd4529107e7ef7a6e7ce43acf96457173
Author: Harald Anlauf <anl...@gmx.de>
Date:   Wed Feb 1 21:01:32 2023 +0100

    Fortran: error recovery on invalid array section [PR108609]

    The testcase for PR108527 uncovered a latent issue with invalid array
    sections that resulted in different paths being taken on different
    architectures.  Detect the invalid array declaration for a clean recovery.

    gcc/fortran/ChangeLog:

            PR fortran/108609
            * expr.cc (find_array_section): Add check to prevent interpreting
an
            mpz non-integer constant as an integer.

    gcc/testsuite/ChangeLog:

            PR fortran/108609
            * gfortran.dg/pr108527.f90: Adjust test pattern.

Reply via email to