This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[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: Mon, 04 Jan 2010 17:14:21 +0100
- Subject: [Fortran,Patch] PR 41872 (alloc. scalars), PR 42597 (proc-pointer init)
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