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

Long-standing compiler bug

Neil_Carlson
Beginner
404 Views
The following code is standard conforming, but ifort (up through 12.1 at least) issues the error:
intel-bug-20110405.f90(54): error #6285: There is no matching specific subroutine for this generic subroutine call. [NEW_NAME]
call new_name (1)
-------^
This is incorrect. The specific subroutinehas been exported from MOD1 and through MOD2 into the program. This was reported against the 11.0 compiler a year ago. Are there any plans to fix this serious defect? Here's the code:
[fortran]module mod1 private public :: generic_foo interface generic_foo module procedure one_arg_foo end interface contains subroutine one_arg_foo (a) integer:: a end subroutine end module module mod2 use mod1, new_name => generic_foo private public :: new_name interface new_name module procedure two_arg_foo end interface contains subroutine two_arg_foo (a, b) integer :: a, b end subroutine end module program main use mod2 call new_name (1) end program [/fortran]
0 Kudos
1 Reply
Anonymous66
Valued Contributor I
404 Views
There are no current plans. The premier support issue for this problem will be updated if and when we have developed a fix for this problem.

Regards,
Annalee
0 Kudos
Reply