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

generic type bound procedure[ifort Version 12.1 Build 20111011]

Dharma
Beginner
378 Views
Hello,
I am getting catastrophic compiler error when i try to compile the follwoing code with ifort Version 12.1 Build 20111011. But the code compiles with out any problem with ifort Version 12.1.0.233 Build 20110811 (Non-comerical). Can you please suggest me what i should do?
[fortran]module test implicit none type dt integer :: i contains procedure :: printReal procedure :: printInteger generic :: printNumber => printReal,printInteger end type dt type dt2 type(dt) :: instancedt contains procedure :: printme end type dt2 contains subroutine printReal(this,r) class(dt), intent(inout) :: this real :: r print*,'i am printing real',r end subroutine printReal subroutine printInteger(this,i) class(dt), intent(inout) :: this integer :: i print*,'i am printing integer',i end subroutine printInteger subroutine printme(this) class(dt2), intent(inout) :: this integer :: i real :: r i = 5
call this%instancedt%printnumber(i) end subroutine printme end module test [/fortran]
0 Kudos
3 Replies
Steven_L_Intel1
Employee
378 Views
Can you try a newer build? It compiles ok for me with update 9 (you have update 6). What switches did you use on the ifort command?
0 Kudos
Dharma
Beginner
378 Views
Hello Steve,
I use this command to compile: ifort -c dtgenProc.F90
Installing newer build on the machine which has the build 20111011 is no in my control, I will have to ask the admin of the server if they can do it for me.

I have, i think update 5 (build 20110811) on my machine where i can install newer build but ultimately i need to run the code on the server.

What else do you suggest i do ?

thanks
Reddy
0 Kudos
Steven_L_Intel1
Employee
378 Views
You don't have to have the compiler installed in order to run a program. I suggest using the current compiler build for development.
0 Kudos
Reply