re PR fortran/68078 (segfault with allocate and stat for derived types with default...
authorLouis Krupp <louis.krupp@zoho.com>
Sun, 18 Sep 2016 05:52:23 +0000 (05:52 +0000)
committerLouis Krupp <lkrupp@gcc.gnu.org>
Sun, 18 Sep 2016 05:52:23 +0000 (05:52 +0000)
commit493ba8208e0c824a582669ab5ec9c1ed901040d3
treeecc284c782e061b44ed2d910c834a450e9651efa
parentee569f061ce01436731660ef6e4654e4a27eb35f
re PR fortran/68078 (segfault with allocate and stat for derived types with default initialization)

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.

From-SVN: r240219
gcc/fortran/ChangeLog
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pr68078.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/set_vm_limit.c [new file with mode: 0644]