Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29592 ディスカッション

PASS attribute and parameterized derived types

Olsen__Oystein
ビギナー
2,296件の閲覧回数

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 件の賞賛
6 返答(返信)
Steven_L_Intel1
従業員
2,296件の閲覧回数

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

FortranFan
名誉コントリビューター III
2,296件の閲覧回数

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

Steven_L_Intel1
従業員
2,296件の閲覧回数

Issue ID is DPD200366416

Steven_L_Intel1
従業員
2,296件の閲覧回数

Fixed in a release later this year.

Nicolas_Essis-Breton
ビギナー
2,296件の閲覧回数

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

 

 

Steven_L_Intel1
従業員
2,296件の閲覧回数

No - it will be fixed in 16.0. 

返信