Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Generic type-bound procedures

Alfredo
Beginner
721 Views

Hello,

does ifort 11.1 (update 4) support generic type-bound procedures?

I cannot compile the following piece of code

[bash]module bmod
  type btype
     integer :: num
   contains
     procedure, pass(a) :: id1
     procedure, pass(a) :: id2
     generic, public :: id => id1, id2
  end type btype

contains
  subroutine id1(a, r)
    class(btype) :: a
    real :: r
    write(*,*)'id1 ',r
    return
  end subroutine id1
  subroutine id2(a, c)
    class(btype) :: a
    complex :: c
    write(*,*)'id2 ',c
    return
  end subroutine id2
end module bmod
[/bash]

can anybody help?

thanks in advance

Alfredo Buttari

0 Kudos
2 Replies
Steven_L_Intel1
Employee
721 Views
No, as stated in the compiler release notes, generic type-bound procedures are not supported. We expect to support these in the next major release late this year.
0 Kudos
Alfredo
Beginner
721 Views

Thanks Steve,

looking forward for this next release.

best regards

alfredo

0 Kudos
Reply