]> gcc.gnu.org Git - 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>
Fri, 26 Aug 2022 20:03:21 +0000 (22:03 +0200)
commit1f682c96048456379729d495b41551a00eac5a3f
treee03085275c2ef75062aac3732ab4ce41b50977c3
parent9f78e7eb8e064556adf466444197aae8e52a1eb3
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.

(cherry picked from commit 55d8c5409325001c89c35c3d04d425dec9127146)
gcc/fortran/simplify.cc
gcc/testsuite/gfortran.dg/pr103694.f90 [new file with mode: 0644]
This page took 0.072768 seconds and 5 git commands to generate.