- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The latest help says a type bound procedure can have the [NON]OVERRIDABLE attribute but it gives a compiler error.
[fortran]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
[/fortran]
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)
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Looks like a "spelling" mistake in the documentation. The keyword is NON_OVERRIDABLE. There's no OVERRIDABLE keyword.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'll have this corrected in the documentation. Thanks for calling it to our attention.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page