- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I noticed that using a line like "procedure(assign), deferred:: assign_data" leads to an
error message that bears little or no relevance to the statement:
sort_syntax_error.f90(11): error #5082: Syntax error, found 'ASSIGN' when expecting one of: ) TYPE BYTE CHARACTER CLASS DOUBLE DOUBLECOMPLEX DOUBLEPRECISION INTEGER LOGICAL ...
procedure(assign), deferred :: assign_data
------------------^
I f I change the name "assign" to something else, the message disappears.
This happens with Intel Fortran 11 on Windows but also with version 12.0.3 on Linux, so I guess
it is a front-end problem.
Here is a small program to reproduce it:
! abstract_sort.f90 --
! Show how to define a generic sortable type
!
! Module for sortable objects
!
module sortable_types
type, abstract :: sortable
! No particular data
contains
procedure(assign), deferred :: assign_data
end type sortable
end module sortable_types
Regards,
Arjen
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
IIRC, ASSIGN was a statement, I have seen it once or twice in an actual program, but
I have never actually used it myself.
Regards,
Arjen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This was fixed in the 13.0 compiler.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page