This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/51310] -finit-bla doesn't initialize *all* items of type bla to the requested constant.
- From: "toon at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 22 Dec 2011 19:23:31 +0000
- Subject: [Bug fortran/51310] -finit-bla doesn't initialize *all* items of type bla to the requested constant.
- Auto-submitted: auto-generated
- References: <bug-51310-4@http.gcc.gnu.org/bugzilla/>
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