Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29425 Discussions

PASS attribute and parameterized derived types

Olsen__Oystein
Beginner
1,808 Views

Hi,

I get the following error when I compile pass_pdt.f90 (attached):

pass_pdt.f90(28): error #8262: For a type-bound procedure that has the PASS binding attribute, the first dummy argument must have the same declared type as the type being defined.   [VAL]
  SUBROUTINE testq(val, this)

I explicitly attach the pass attribute to the second argument, this, and not the first. The second attached file (pass.f90) has no such issues. The only difference is that the derived type is no longer parameterized. Is this a compiler bug?

This is with ifort version 15.0.2, on openSUSE 13.2.

 

Best regards,

Øystein

 

 

 

 

0 Kudos
6 Replies
Steven_L_Intel1
Employee
1,808 Views

Seems likely it's a compiler bug. I will send this on to the developers. Thanks.

0 Kudos
FortranFan
Honored Contributor III
1,808 Views

"Is this a compiler bug?" - I think so, in the PDT implementation.

0 Kudos
Steven_L_Intel1
Employee
1,808 Views

Issue ID is DPD200366416

0 Kudos
Steven_L_Intel1
Employee
1,808 Views

Fixed in a release later this year.

0 Kudos
Nicolas_Essis-Breton
1,808 Views

Is this fixed in 15.0.3?

The attached file gives the same error with

ifort lc_types.f90 -I./  -c -g  -traceback -gen-interfaces  -warn all -check all -fpe0 -ftrapuv -I/opt/intel/composer_xe_2015.3.187/mkl/include

 

 

0 Kudos
Steven_L_Intel1
Employee
1,808 Views

No - it will be fixed in 16.0. 

0 Kudos
Reply