[Patch, fortran] Would this patch - applied to trunk - be OK for the 4.6 branch ?

Toon Moene toon@moene.org
Mon Dec 19 17:54:00 GMT 2011


The attached patch makes -finit-<type>=<constant> generate default 
initialization for automatic arrays.

It was OK for the trunk - is it also OK for the 4.6 branch ?

Strictly speaking, it doesn't fix a regression, it is a fix for a 
(non-default) debugging option.

2011-12-19  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>.

-- 
Toon Moene - e-mail: toon@moene.org - phone: +31 346 214290
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
At home: http://moene.org/~toon/; weather: http://moene.org/~hirlam/
Progress of GNU Fortran: http://gcc.gnu.org/wiki/GFortran#news
-------------- next part --------------
A non-text attachment was scrubbed...
Name: init_real.patch
Type: text/x-patch
Size: 977 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20111219/3135c8bc/attachment.bin>


More information about the Fortran mailing list