]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: improve error recovery while simplifying size of bad array [PR103694]
authorHarald Anlauf <anlauf@gmx.de>
Tue, 23 Aug 2022 20:16:14 +0000 (22:16 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Wed, 24 Aug 2022 16:24:41 +0000 (18:24 +0200)
commit55d8c5409325001c89c35c3d04d425dec9127146
tree064ef2a11211b6b21ecfa9fd58b2f0f2e3cabe38
parent530f80451a9e76896a0294e0f4bd59baff1ac27f
Fortran: improve error recovery while simplifying size of bad array [PR103694]

gcc/fortran/ChangeLog:

PR fortran/103694
* simplify.cc (simplify_size): The size expression of an array cannot
be simplified if an error occurs while resolving the array spec.

gcc/testsuite/ChangeLog:

PR fortran/103694
* gfortran.dg/pr103694.f90: New test.
gcc/fortran/simplify.cc
gcc/testsuite/gfortran.dg/pr103694.f90 [new file with mode: 0644]