https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67125
--- Comment #4 from Tobias Burnus <burnus at gcc dot gnu.org> --- Author: burnus Date: Tue Oct 16 18:37:08 2018 New Revision: 265212 URL: https://gcc.gnu.org/viewcvs?rev=265212&root=gcc&view=rev Log: Fix bounds with ALLOCATE with source-expr PR fortran/67125 * trans-array.c (gfc_array_init_size, gfc_array_allocate): Rename argument e3_is_array_constr to e3_has_nodescriptor and update comments. * trans-stmt.c (gfc_trans_allocate): Also fix lower bound to 1 for nonalloc/nonpointer func results/vars besides array constructors. PR fortran/67125 * gfortran.dg/allocate_with_source_26.f90: New. Added: trunk/gcc/testsuite/gfortran.dg/allocate_with_source_26.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/trans-array.c trunk/gcc/fortran/trans-stmt.c trunk/gcc/testsuite/ChangeLog