[Patch, fortran-dev] SELECT TYPE execution and allocatable scalar components
Janus Weil
janus@gcc.gnu.org
Tue Sep 22 09:08:00 GMT 2009
Hi all,
here is my next installment for the fortran-dev branch, featuring the
following enhancements:
1) Simple SELECT TYPE statements do work at runtime, where 'simple'
here refers to all those that have no CLASS IS cases. If CLASS IS
statements are encountered they will simply be ignored, but TYPE IS
and CLASS DEFAULT should work fine (cf. test case). This is the first
working example of dynamically polymorphic code!
2) Allocatable scalar components should be working now (cf. PR 40996).
This is a prerequisite for allocatable scalar CLASS variables. It also
has the effect that Salvatore's PSBLAS library can be compiled
completely now (without errors). Salvatore, can you confirm that with
your most recent version?
3) It contains a small fix for a bootstrap failure (due to a simple
warning), which has been introduced by my last commit.
Given that nobody protests, I will commit this patch to the branch
after a regtest. If anyone cares to help with the OOP branch (now that
it's starting to be actually usable): User-perspective tests of the
new features would be very welcome!
Cheers,
Janus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: st_asc_0922.diff
Type: text/x-diff
Size: 6548 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20090922/53603f93/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: select_type_2.f03
Type: application/octet-stream
Size: 776 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20090922/53603f93/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: allocatable_scalars_2.f90
Type: application/octet-stream
Size: 313 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20090922/53603f93/attachment-0001.obj>
More information about the Fortran
mailing list