interface containing derived type

interface containing derived type


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.


Download testdrivedtype.f90667 bytes
3 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Unless the specific rules in Article, "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.

Exactly what i was looking for.


Leave a Comment

Please sign in to add a comment. Not a member? Join today