- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The following code compiled just fine in version 12.0 but gives the following error message in IVF 17.0
error #8383: The dummy arguments of an overriding and overridden binding that correspond by position must have the same characteristics, except for the type of the passed object dummy arguments. [ASSOCIATE]
I dont quite understand why is error off on line 25.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How do you post code with line numbers?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The {} code icon on the toolbar , then select Fortran, then paste the source code in.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The later compiler is better at finding errors in the code (and perhaps better at identifying the line number of the error). The interfaces of the two procedures that are referenced by the associate bindings are
subroutine associatePLSStoLCVG(self,other) class(PLSSInterface), intent(inout) :: self class(LCVGInterface), intent(inout) :: other ... subroutine associateLCVGtoPLSS(self,other) class(LCVGInterface), intent(inout) :: self class(PLSSInterface), intent(inout) :: other
The declarations of the `other` dummy argument are not the same! As they do not correspond to the passed argument, the rules of the language (F2008 4.5.7.3p2) require that they be the same.
(The declarations of the `self` dummy argument differ only such that the type of the argument is the same as the type with the relevant binding, this is consistent with the rules of the language.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
See excellent point by IanH in message# 4: perhaps you meant to use GENERIC bindings to your types - https://software.intel.com/en-us/node/678723 where with type extension, the generic interface gets extended.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is there a compiler option I could use to ignore this error for now?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No - you'll have to correct your code.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page