Help file more up to date than compiler

Help file more up to date than compiler

The latest help says a type bound procedure can have the [NON]OVERRIDABLE attribute but it gives a compiler error.

module ParentType

	   implicit none

	   type AType


	         procedure, NONOVERRIDABLE :: doSomething

	   end type


	   subroutine doSomething(item)

	      class(AType), intent(inout) :: item

	   end subroutine

	end module


Compiling with Intel(R) Visual Fortran Compiler XE [IA-32]...


D:\temp\Console1\Console1\Console1.f90(6): error #8172: This is not a valid attribute for the procedure component definition statement. [NONOVERRIDABLE]

compilation aborted for D:\temp\Console1\Console1\Console1.f90 (code 1)

4 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Looks like a "spelling" mistake in the documentation.  The keyword is NON_OVERRIDABLE.  There's no OVERRIDABLE keyword.

It's clearly a typo in Intel's help system.   

NON_OVERRIDABLE is the right option; and as Ian mentioned, OVERRIDABLE is not a valid keyword.

When in doubt, refer to Fortran 2003 and 2008 standards documentation.

NON_OVERRIDABLE is indeed available in Intel Fortran compiler; I've been using it extensively for a while now.

I'll have this corrected in the documentation.  Thanks for calling it to our attention.

Steve - Intel Developer Support

Leave a Comment

Please sign in to add a comment. Not a member? Join today