re PR fortran/68566 (ICE on using unusable array in reshape (double free or corruption))
authorJerry DeLisle <jvdelisle@gcc.gnu.org>
Sat, 9 Apr 2016 19:09:02 +0000 (19:09 +0000)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Sat, 9 Apr 2016 19:09:02 +0000 (19:09 +0000)
commita5edb32e6bf15519852b9cc321aa397ed238efef
tree1ced5448c700f915d81da68df88da1b2b68dd7ff
parentc532c87139a9410212ab0eff59a4980d28646bfa
re PR fortran/68566 (ICE on using unusable array in reshape (double free or corruption))

2016-04-09  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR fortran/68566
* array.c (match_array_element_spec): Add check for non-integer.
* simplify.c (gfc_simplify_reshape): If source shape is NULL return.

PR fortran/68566
* gfortran.dg/pr36192.f90: Update test.
* gfortran.dg/pr36192_1.f90: Update test.
* gfortran.dg/real_dimension_1.f: Update test.
* gfortran.dg/parameter_array_init_7.f90: New test.

From-SVN: r234864
gcc/fortran/ChangeLog
gcc/fortran/array.c
gcc/fortran/simplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/parameter_array_init_7.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/pr36192.f90
gcc/testsuite/gfortran.dg/pr36192_1.f90
gcc/testsuite/gfortran.dg/real_dimension_1.f