- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi. I'm using
> ifort --version
ifort (IFORT) 12.1.3 20120212
Copyright (C) 1985-2012 Intel Corporation. All rights reserved.
on
> uname -a
Linux stonehenge 3.3.4-3.fc16.x86_64 #1 SMP Thu May 3 14:46:44 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
With input source
> cat class.f90
subroutine s(c)
type :: t
end type t
class(t) :: c
end subroutine s
c is converted into type(t) in the output:
> ifort -c -gen-interfaces class.f90 ; cat s__genmod.f90
!COMPILER-GENERATED INTERFACE MODULE: Fri May 11 08:55:58 2012
MODULE S__genmod
INTERFACE
SUBROUTINE S(C)
TYPE T
END TYPE T
TYPE (T) :: C
END SUBROUTINE S
END INTERFACE
END MODULE S__genmod
> ifort --version
ifort (IFORT) 12.1.3 20120212
Copyright (C) 1985-2012 Intel Corporation. All rights reserved.
on
> uname -a
Linux stonehenge 3.3.4-3.fc16.x86_64 #1 SMP Thu May 3 14:46:44 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
With input source
> cat class.f90
subroutine s(c)
type :: t
end type t
class(t) :: c
end subroutine s
c is converted into type(t) in the output:
> ifort -c -gen-interfaces class.f90 ; cat s__genmod.f90
!COMPILER-GENERATED INTERFACE MODULE: Fri May 11 08:55:58 2012
MODULE S__genmod
INTERFACE
SUBROUTINE S(C)
TYPE T
END TYPE T
TYPE (T) :: C
END SUBROUTINE S
END INTERFACE
END MODULE S__genmod
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks - this appears to affect only the generated .f90 which is never used by the compiler. The .mod correctly indicates the argument is polymorphic. I will let the developers know. Issue ID is DPD200181984.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This has been fixed for a release later ths year.

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