- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Is that normal to have the same declaration of type being considered as to different type by the error :
"The type of the actual argument differs from the type of the dummy argument".
I attached a testfile.
Thanks.
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Unless the specific rules in Article 4.5.1.3, "Determination of derived types", of the Fortran 2003 standard are satisfied, repeating a type definition word for word may still cause the compiler to regard the two types so declared as distinct.
When I saw this "feature" the first time, I was surprised, too. However, it does make it easier for the compiler to keep track of user-defined types.
The IMPORT ... statement is provided to alleviate the problem that you ran into.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Exactly what i was looking for.
Thanks.

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