[Patch, fortran] PR20541 - allocatable components (TR15541)
Tobias Burnus
burnus@net-b.de
Sat Oct 7 16:45:00 GMT 2006
Toon Moene wrote:
> Paul Thomas wrote:
>> This patch implements the part of TR15541 that is concerned with
>> allocatable components of derived types. This extension to the F95
>> standard offers three important advantages over pointer components:
> Congratulations - Good Work ! This will definitely help GNU Fortran
> to win the hearts and minds [...] of Fortran users.
>
> Most of them don't even know this is an enhancement to the '95
> Standard, and tend to complain our implementation "is not complete".
Also gratulations from me.
Probably not surprising: With the patch GCC compiles fine (on
openSUSE/AMD64).
I also tested a couple of F95 and F77 non-TR15581 applications (among
them Wien2k, Fleur, Exciting, Octopus); compilation and running them was
ok. Some minor tests of allocatable elements in type, allocatable dummy
arguments and move_alloc work well, as do -std=f95 vs. -std=f2003.
> --- gcc/fortran/intrinsic.c (working copy)
> + add_sym_2s ("move_alloc", 0, 0, BT_UNKNOWN, 0, GFC_STD_F2003,
> + gfc_check_move_alloc, NULL, NULL,
> + f, BT_UNKNOWN, 0, REQUIRED,
> + t, BT_UNKNOWN, 0, REQUIRED);
If I saw it correctly, the third argument is gone with the lastest patch
by FX.
Tobias
More information about the Fortran
mailing list