Quantcast
Channel: Intel® Fortran Compiler
Viewing all articles
Browse latest Browse all 3270

Static array of procedure pointers

$
0
0

Hi,

I am trying to construct a static array of procedure pointers like this:

      abstract interface
        function USERFUNC_int (arg)
        integer USERFUNC_int
        integer, intent(IN) :: arg
        end function USERFUNC_int
      end interface

      procedure(USERFUNC_int), pointer :: pcfs(100)

 but the compiler complains about the "(":

error #5082: Syntax error, found '(' when expecting one of:  , <END-OF-STATEMENT> ; =>

      procedure(USERFUNC_int), pointer :: pcfs(100)

It is possible to declare a static array of procedure pointers? I am using ifort 13.1.3.0.

Thanks,

Rak


Viewing all articles
Browse latest Browse all 3270

Trending Articles



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