[Fortran,patch] Add IMPORT support (PR27546)
Tobias Burnus
burnus@net-b.de
Wed Nov 8 16:15:00 GMT 2006
:ADDPATCH fortran:
The following patch implements the IMPORT statement of Fortran 2003,
which can be used to access derived types via host association:
...
type coordType
sequence
real :: x, y
end coordType
interface
function hypot(coord)
import :: coordType ! or simply "import"
type(coordType) :: coord
end function hypot
end interface
(Of cause, if hypot is written in Fortran, one should use a module.)
Bootstrapped and regression tested (check-gfortran only) on
x86_64-unknown-linux-gnu (openSUSE 10.2beta2).
Tobias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: import.diff
Type: text/x-patch
Size: 11824 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20061108/b343a2c4/attachment.bin>
More information about the Fortran
mailing list