[Bug fortran/68078] segfault with allocate and stat for derived types with default initialization

lkrupp at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Sep 18 05:53:00 GMT 2016


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

--- Comment #3 from lkrupp at gcc dot gnu.org ---
Author: lkrupp
Date: Sun Sep 18 05:52:23 2016
New Revision: 240219

URL: https://gcc.gnu.org/viewcvs?rev=240219&root=gcc&view=rev
Log:
2016-09-17  Louis Krupp  <louis.krupp@gmail.com>

        PR fortran/68078
        * gfortran.dg/pr68078.f90: New test.
        * gfortran.dg/set_vm_limit.c: New, called by pr68078.

2016_09_17  Louis Krupp  <louis.krupp@zoho.com>

        PR fortran/68078
        * resolve.c (resolve_allocate_expr): Check that derived type
        pointer, object or array has been successfully allocated before
        initializing.


Added:
    trunk/gcc/testsuite/gfortran.dg/pr68078.f90
    trunk/gcc/testsuite/gfortran.dg/set_vm_limit.c
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/resolve.c
    trunk/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list