- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi. I'm using
> ifort --version
ifort (IFORT) 13.0.0 20120731
on
> uname -a
Linux whakarewarewa.nag.co.uk 3.5.3-1.fc17.x86_64 #1 SMP Wed Aug 29 18:46:34 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
The fixes to -gen-interfaces at Version 13 are really appreciated, but there are still some problems.
> cat interface.f90
Subroutine s(a, b, c, d)
Implicit None
Integer, Parameter :: n = 3, k = 8
Integer, Allocatable :: a
Type t
End Type t
Type (t), Optional :: b
Integer :: c(n)
Integer (k) :: d
End Subroutine s
> ifort -gen-interfaces -c interface.f90 ; cat s__genmod.f90
!COMPILER-GENERATED INTERFACE MODULE: Thu Sep 13 11:47:10 2012
MODULE S__genmod
INTERFACE
SUBROUTINE S(A,B,C,D)
TYPE T
END TYPE T
INTEGER(KIND=4) :: A
TYPE (T) :: B
INTEGER(KIND=4) :: C(3)
INTEGER(KIND=8) :: D
END SUBROUTINE S
END INTERFACE
END MODULE S__genmod
Note that in the output a is missing Allocatable and b is missing Optional.
As further suggestions, would you consider preserving Parameters in Interfaces instead of semantically replacing them? E.g., preserve c(n) and Integer (Kind=k) :: d in the output?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page