[Patch, Fortran] PR 50981 Fix simpler issues of optional + elemental
Tobias Burnus
burnus@net-b.de
Mon Jan 16 17:15:00 GMT 2012
Dear all,
PR 50981 is about passing an absent argument to an elemental procedure.
a) Passing an absent optional dummy as actual.
4.4-4.7 Regression, fixed for 4.7; backporting pending.
b) Passing an unallocated allocatable or not associated pointer as actual
F2008/GCC 4.6 feature. Fixed by this patch.
c) Handling polymorphic scalars/arrays with elemental procedures
Some draft patch available, but needs more work. That's a 4.7/4.8 item.
The attached patch solves (b).
Build and regtested on x86-64-linux.
OK for the trunk? (And [together with (a)] for the 4.6 branch?)
Tobias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: opt-elemen.diff
Type: text/x-patch
Size: 5946 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20120116/6ae77b8e/attachment.bin>
More information about the Gcc-patches
mailing list