https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71936
--- Comment #8 from vehre at gcc dot gnu.org --- Author: vehre Date: Thu Aug 11 08:12:31 2016 New Revision: 239354 URL: https://gcc.gnu.org/viewcvs?rev=239354&root=gcc&view=rev Log: gcc/fortran/ChangeLog: 2016-08-11 Andre Vehreschild <ve...@gcc.gnu.org> Backport from trunk: PR fortran/71936 * trans-array.c (gfc_array_allocate): When SOURCE= is a function stick with the ref of the object to allocate. gcc/testsuite/ChangeLog: 2016-08-11 Andre Vehreschild <ve...@gcc.gnu.org> Backport from trunk: PR fortran/71936 * gfortran.dg/allocate_with_source_21.f03: New test. Added: branches/gcc-6-branch/gcc/testsuite/gfortran.dg/allocate_with_source_21.f03 Modified: branches/gcc-6-branch/gcc/fortran/ChangeLog branches/gcc-6-branch/gcc/fortran/trans-array.c branches/gcc-6-branch/gcc/testsuite/ChangeLog