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

variable SIGNAL comes up as a "PROCEDURE" in debugger

abhimodak
New Contributor I
532 Views
Is there anything special about "SIGNAL"? When running the snippet below in debug mode, SIGNAL is always displayed as a prodcedure in the watch window. However, use of modulename :: SIGNAL shows it correctly as the character variable.

(In a mixed-langauge program, I find that when hovering cursor over it if used in a subroutine/program also shows is at as a procedure. I don't see this is Fortran only program.)

This does not seem to happen for other intrinsic function SIN. As I understand SIGNAL is a portability function. I would try to avoid use of such function names but this is coming from a legacy library.

I am using IVF 11.1.035 with VS2005 on Win64 XP.

Sincerely
Abhi

----

Module OM
Implicit None
Character(16) :: SIGNAL, SIN
End Module OM

Module Earth
Use OM
Implicit None
Contains
Subroutine Fire
SIGNAL = 'Water'
End Subroutine Fire
End Module Earth

Program Test
Use Earth
Implicit None
Call Fire
Print *, "Sky."
End Program Test
0 Kudos
1 Reply
Steven_L_Intel1
Employee
532 Views
Thanks - we're looking into it. As a workaround, you can watch OM::SIGNAL.
0 Kudos
Reply