Quantcast
Channel: Intel® Fortran Compiler for Linux* and macOS*
Viewing all articles
Browse latest Browse all 2583

Compilation problem with Interface, Procedure

$
0
0

Hi all,

Could someone tell me why ifort 14.0.1.106 does not compile this code below. Gfortran and I think NAG compile this. If this is not standard, could you indicate the part of the standard that prohibits this? Thank you.

Cheers

Hossein

 

module iface

  interface foo

    subroutine i_sub_foo(v)

      integer, intent(inout) :: v(:)

    end subroutine i_sub_foo

  end interface foo

  interface bar

    procedure i_sub_foo

  end interface bar

end module iface

Error msg: iface.f90(10): error #6623: The procedure name of the INTERFACE block conflicts with a name in the encompassing scoping unit.   [I_SUB_FOO]

 

 


Viewing all articles
Browse latest Browse all 2583

Trending Articles



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