]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: re PR fortran/68566 (ICE on using unusable array in reshape (double free...
authorSteven G. Kargl <kargl@gcc.gnu.org>
Fri, 30 Sep 2016 17:54:15 +0000 (17:54 +0000)
committerSteven G. Kargl <kargl@gcc.gnu.org>
Fri, 30 Sep 2016 17:54:15 +0000 (17:54 +0000)
commit2058a9532f6fedef6d669aa4d397cd9f91cb8234
tree1e1e588f5f0ef1568e326c7de3db9c94f54322d2
parent07b6f44cc3231413ee5e443d4ad0a87faac2775e
backport: re PR fortran/68566 (ICE on using unusable array in reshape (double free or corruption))

2016-09-30  Steven G. Kargl  <kargl@gcc.gnu.org>

Backport from trunk

PR fortran/68566
* check.c (gfc_check_reshape): Check for constant expression.

PR fortran/68566
* gfortran.dg/pr68566.f90: new test.

From-SVN: r240671
gcc/fortran/ChangeLog
gcc/fortran/check.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pr68566.f90 [new file with mode: 0644]