This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/68566] ICE on using unusable array in reshape (double free or corruption)


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68566

--- Comment #10 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
Author: jvdelisle
Date: Sat Apr  9 19:09:02 2016
New Revision: 234864

URL: https://gcc.gnu.org/viewcvs?rev=234864&root=gcc&view=rev
Log:
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.

Added:
    trunk/gcc/testsuite/gfortran.dg/parameter_array_init_7.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/array.c
    trunk/gcc/fortran/simplify.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gfortran.dg/pr36192.f90
    trunk/gcc/testsuite/gfortran.dg/pr36192_1.f90
    trunk/gcc/testsuite/gfortran.dg/real_dimension_1.f

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]