re PR fortran/29758 (Runtime segfault in RESHAPE with insufficient elements in SOURCE)
authorPaul Thomas <pault@gcc.gnu.org>
Fri, 10 Nov 2006 21:06:42 +0000 (21:06 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Fri, 10 Nov 2006 21:06:42 +0000 (21:06 +0000)
commitd8d8121add34439d69187182bacea680468270df
tree08f1d1862fcda9270ca787d05266443665ded1d0
parentf70d742fc89c922a9ad5508753027eb17827369c
re PR fortran/29758 (Runtime segfault in RESHAPE with insufficient elements in SOURCE)

2006-11-10 Paul Thomas <pault@gcc.gnu.org>

   PR fortran/29758
   * check.c (gfc_check_reshape): Check that there are enough
   elements in the source array as to be able to fill an array
   defined by shape, when pad is absent.

2006-11-10 Paul Thomas <pault@gcc.gnu.org>

   PR fortran/29758
   * gfortran.dg/reshape_source_size_1.f90: New test.

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