Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

interface containing derived type

pat97269
Beginner
585 Views

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.

0 Kudos
2 Replies
mecej4
Honored Contributor III
585 Views
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.
0 Kudos
pat97269
Beginner
585 Views
Exactly what i was looking for. Thanks.
0 Kudos
Reply