Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
New Contributor I
24 Views

procedure pointer as undefined variable

I have modified source code of dynamicload.f90 sample and I am debugging in VisualStudio 2015 update 3 professional. Intel Fortran compiler is parallel studio XE2016 update 4.
Relevant Code lines are:
=============================================
abstract interface
  subroutine METH00(iarg)
  integer :: iarg
  end subroutine METH00
end interface

! Declare a procedure pointer that will be used to call the function,
! based on the abstract interface declared above.
!procedure(USERFUNC_int), pointer :: USERFUNC
 procedure (METH00), pointer :: P_METH00

================================================
In the Quick watch dialog the variable P_METH00 results as an 'undefined variable'.
I take this opportunity to recall that variables passed in the ENTRY of a subroutine are similarly not visible in debugging.
This  last point has been a topic raised some time ago through premier support. 

 

 

 

 

0 Kudos
4 Replies
Highlighted
Black Belt Retired Employee
24 Views

Please attach the whole of your modified example.

0 Kudos
Highlighted
New Contributor I
24 Views

The problem can be viewed using the original intel sample.
​Attached is the image of the debug window and quick view dialog with the USERFUNC pointer undefined.

 

0 Kudos
Highlighted
Black Belt Retired Employee
24 Views

Ok - since you said you modified the code I wanted to make sure that I knew what code you were talking about. I can reproduce the issue. I am sure that one of the Intel folks will pick this up and send it on to the developers,

0 Kudos
Highlighted
Employee
24 Views

Thank you Luigi and Steve. I also reproduced this and escalated it to the Developers. I will post progress on a resolution as I learn it.

(Internal tracking id: DPD200418508)

0 Kudos