http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57522
--- Comment #5 from Paul Thomas <pault at gcc dot gnu.org> --- Author: pault Date: Sun Feb 9 20:50:21 2014 New Revision: 207646 URL: http://gcc.gnu.org/viewcvs?rev=207646&root=gcc&view=rev Log: 2014-02-09 Paul Thomas <pa...@gcc.gnu.org> PR fortran/57522 * resolve.c (resolve_assoc_var): Set the subref_array_pointer attribute for the 'associate-name' if necessary. * trans-stmt.c (trans_associate_var): If the 'associate-name' is a subref_array_pointer, assign the element size of the associate variable to 'span'. 2014-02-09 Paul Thomas <pa...@gcc.gnu.org> PR fortran/57522 * gfortran.dg/associated_target_5.f03 : New test Added: trunk/gcc/testsuite/gfortran.dg/associated_target_5.f03 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/resolve.c trunk/gcc/fortran/trans-stmt.c trunk/gcc/testsuite/ChangeLog