Quantcast
Channel: Intel® Software - Intel® Visual Fortran Compiler for Windows*
Viewing all articles
Browse latest Browse all 5691

Help file more up to date than compiler

$
0
0

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

	      contains

	         procedure, NONOVERRIDABLE :: doSomething

	   end type

	contains

	   subroutine doSomething(item)

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

	   end subroutine

	end module

	

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

Console1.f90

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)


Viewing all articles
Browse latest Browse all 5691

Trending Articles



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