[Fortran,Patch] PR 41872 (alloc. scalars), PR 42597 (proc-pointer init)
Tobias Burnus
burnus@net-b.de
Mon Jan 4 16:21:00 GMT 2010
Now with attachments ...
On 01/04/2010 05:14 PM, Tobias Burnus wrote:
> Hi all,
>
> another two patches:
>
> a) PR 42597
> gfortran ICEd when initializing a proc-pointer with NULL() - but only
> when its interface was one for a array-returning function. The solution
> is simple: Call gfc_conv_initializer with "array = false" in that case.
>
> b) PR 41872
> Allocatable scalars: If they are marked as SAVE no
> nullification/automatic deallocation is allowed. The solution is trivial
> (see patch). Note: One cannot simply add it to the outer conditional as
> it otherwise fails with an unreachable().
> I tested it also for CLASS but that fails (with the patch) for other
> reasons, cf. PR 42610. There are still some other issues left, e.g.
> nullifying the result variable of a character-returning function.
>
> Build and regtested (libgomp, fortran) on x86-64-linux with no new failures.
> OK for the trunk?
>
> Tobias
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: alloc-scalar.diff
Type: text/x-patch
Size: 3273 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20100104/e36cda29/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pptr.diff
Type: text/x-patch
Size: 1742 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20100104/e36cda29/attachment-0001.bin>
More information about the Fortran
mailing list