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

INTERFACE to a MODULE PROCEDURE

Espen_M_
Beginner
383 Views

I try compiling the following code which is in a MODULE:

[fortran]

INTERFACE log
PROCEDURE::log_gen_2
END INTERFACE log

[/fortran]

I get an internal error message, while if I change the code to

[fortran]

INTERFACE log

MODULE PROCEDURE::log_gen_2

END INTERFACE log

[/fortran]

then the code compiles. It is my impression that the MODULE token is just optional for module procedure, and in that case this is a bug.

0 Kudos
2 Replies
Steven_L_Intel1
Employee
383 Views

Yes, this is a bug that occurs when you try to extend an intrinsic (log here) without adding the MODULE keyword. This is our issue DPD200239082 which is not yet fixed.

0 Kudos
Steven_L_Intel1
Employee
383 Views

This is fixed for a release later this year.

0 Kudos
Reply