This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/68218] ALLOCATE with size given by a module function


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68218

--- Comment #3 from vehre at gcc dot gnu.org ---
Author: vehre
Date: Sun Nov  8 17:37:42 2015
New Revision: 229956

URL: https://gcc.gnu.org/viewcvs?rev=229956&root=gcc&view=rev
Log:
gcc/fortran/ChangeLog:

2015-11-08  Andre Vehreschild  <vehre@gcc.gnu.org>

        PR fortran/68218
        * trans-array.c (gfc_array_init_size): Add gfc_evaluate_now() when
        array spec in allocate is a function call.

gcc/testsuite/ChangeLog:

2015-11-08  Andre Vehreschild  <vehre@gcc.gnu.org>

        PR fortran/68218
        * gfortran.dg/allocate_with_arrayspec_1.f90: New test.



Added:
    trunk/gcc/testsuite/gfortran.dg/allocate_with_arrayspec_1.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/trans-array.c
    trunk/gcc/testsuite/ChangeLog

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]