This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Fortran,Patch] PR 41872 (alloc. scalars), PR 42597 (proc-pointer init)
- From: Tobias Burnus <burnus at net-b dot de>
- To: gfortran <fortran at gcc dot gnu dot org>, gcc patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 06 Jan 2010 08:44:20 +0100
- Subject: Re: [Fortran,Patch] PR 41872 (alloc. scalars), PR 42597 (proc-pointer init)
- References: <4B4213DD.90507@net-b.de>
(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?
>