Quantcast
Channel: Recent posts
Viewing all articles
Browse latest Browse all 415

procedure pointer as undefined variable

$
0
0

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. 

 

 

 

 


Viewing all articles
Browse latest Browse all 415

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>