[Bug fortran/51310] -finit-bla doesn't initialize *all* items of type bla to the requested constant.

toon at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Dec 22 20:18:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51310

--- Comment #8 from toon at gcc dot gnu.org 2011-12-22 19:23:31 UTC ---
Author: toon
Date: Thu Dec 22 19:23:26 2011
New Revision: 182634

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182634
Log:
2011-12-22  Toon Moene  <toon@moene.org>

    PR fortran/51310
    * resolve.c (build_default_init_expr): Allow non-allocatable,
    non-compile-time-constant-shape arrays to have a default
    initializer.
    * invoke.texi: Delete the restriction on automatic arrays not
    being initialized by -finit-<type>=<constant>.


Modified:
    branches/gcc-4_6-branch/gcc/fortran/ChangeLog
    branches/gcc-4_6-branch/gcc/fortran/invoke.texi
    branches/gcc-4_6-branch/gcc/fortran/resolve.c



More information about the Gcc-bugs mailing list