[Fortran,Patch] PR 41872 (alloc. scalars), PR 42597 (proc-pointer init)
Jerry DeLisle
jvdelisle@verizon.net
Thu Jan 7 06:37:00 GMT 2010
On 01/05/2010 11:44 PM, Tobias Burnus wrote:
> (early) *ping*
>
> http://gcc.gnu.org/ml/fortran/2010-01/msg00025.html
>
> Tobias Burnus wrote:
>> 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?
>>
OK, thanks for patch.
Jerry
More information about the Fortran
mailing list