2012-02-05 Paul Thomas <pault@gcc.gnu.org>
authorpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 5 Feb 2012 19:56:09 +0000 (19:56 +0000)
committerpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 5 Feb 2012 19:56:09 +0000 (19:56 +0000)
commitadb7de2d25b5f0335bce8864d161bd8f6e053ba7
treed24f95d7b226dd88ab5c551a6d9d2108472b18c7
parent6c2e05ffa17a424b6243caf9d43d0e26a55fc4f8
2012-02-05  Paul Thomas  <pault@gcc.gnu.org>

* trans-array.c (gfc_array_allocate): Zero memory for all class
array allocations.
* trans-stmt.c (gfc_trans_allocate): Ditto for class scalars.

PR fortran/52102
* trans-stmt.c (gfc_trans_allocate): Before correcting a class
array reference, ensure that 'dataref' points to the _data
component that is followed by the array reference..

2012-02-05  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/52102
* gfortran.dg/class_48.f90 : Add test of allocate class array
component with source in subroutine test3.  Remove commenting
out in subroutine test4, since branching on unitialized variable
is now fixed (no PR for this last.).

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183915 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/fortran/ChangeLog
gcc/fortran/trans-array.c
gcc/fortran/trans-stmt.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/class_48.f90