]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: error recovery while simplifying intrinsic UNPACK [PR107054]
authorHarald Anlauf <anlauf@gmx.de>
Tue, 27 Sep 2022 18:54:28 +0000 (20:54 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Thu, 29 Sep 2022 18:35:45 +0000 (20:35 +0200)
commit2773a90c0f4f323e8ace0593893bc8fcbd2266cf
tree2a0808b660b526878c7471a308c88ea5b784ace8
parent22c2658a8b6ae9ece8b33bc483c04a767168b5f4
Fortran: error recovery while simplifying intrinsic UNPACK [PR107054]

gcc/fortran/ChangeLog:

PR fortran/107054
* simplify.cc (gfc_simplify_unpack): Replace assert by condition
that terminates simplification when there are not enough elements
in the constructor of argument VECTOR.

gcc/testsuite/ChangeLog:

PR fortran/107054
* gfortran.dg/pr107054.f90: New test.

(cherry picked from commit 78bc6497fc61bbdacfb416ee0246a775360d9af6)
gcc/fortran/simplify.cc
gcc/testsuite/gfortran.dg/pr107054.f90 [new file with mode: 0644]