r207204 - in /trunk/gcc: fortran/ChangeLog fort...
pault@gcc.gnu.org
pault@gcc.gnu.org
Tue Jan 28 20:10:00 GMT 2014
Author: pault
Date: Tue Jan 28 20:10:22 2014
New Revision: 207204
URL: http://gcc.gnu.org/viewcvs?rev=207204&root=gcc&view=rev
Log:
2014-01-28 Paul Thomas <pault@gcc.gnu.org>
PR fortran/59414
* trans-stmt.c (gfc_trans_allocate): Before the pointer
assignment to transfer the source _vptr to a class allocate
expression, the final class reference should be exposed. The
tail that includes the _data and array references is stored.
This reduced expression is transferred to 'lhs' and the _vptr
added. Then the tail is restored to the allocate expression.
2014-01-28 Paul Thomas <pault@gcc.gnu.org>
PR fortran/59414
* gfortran.dg/allocate_class_3.f90 : New test
Added:
trunk/gcc/testsuite/gfortran.dg/allocate_class_3.f90
trunk/gcc/testsuite/gfortran.dg/elemental_by_value_1.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/trans-stmt.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-cvs
mailing list