Comments
Patch
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-4.6/changes.html,v
retrieving revision 1.87
@@ -327,6 +327,14 @@
<li>In pointer assignments it is now possible to specify the lower
bounds of the pointer and, for a rank-1 or a simply contiguous
data-target, to remap the bounds.</li>
+ <li>Automatic (re)allocation for arrays: In intrinsic assignments to
+ allocatable variables the left-hand side will be automatically
+ allocated (if unallocated) or reallocated (if the shape is different).
+ To avoid the small performance penalty, you can use, for instance,
+ for arrays <code>a(:) = ...</code> instead of <code>a = ...</code>
+ – or disable the feature using <code>-std=f95</code> or
+ <code>-fno-realloc-lhs</code>. Note: GCC does not yet support
+ (re)allocation on assignment for allocatable <em>scalar</em> variables.
</ul>
</li>
<li>Fortran 2008 support has been extended: