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

Standards warning? all arguments must be same type and kind

bilklebatnasagov
Beginner
554 Views

Hi,

I'm getting a standards warning that I don't understand from both 10.1.015 and 11.0.025:

ifort -stand=f95 argument_types.f90
argument_types.f90(4): warning #7374: F95 standard requires all arguments be of the same type and same kind type parameter. [1]
iinteger(i1), parameter :: var2 = min(2_i1,var1)
--------------------------------------------^

for the following code:

cat << EOF > argument_types.f90
program argument_types
  integer, parameter :: i1 = selected_int_kind(2)
  integer(i1), parameter :: var1 = 1_i1
  integer(i1), parameter :: var2 = min(2_i1,var1)
end program argument_types
EOF

It seems that both arguments are integer type and i1 kind?

Confused,
--
Bil Kleb
http://fun3d.larc.nasa.gov

0 Kudos
3 Replies
bilklebatnasagov
Beginner
553 Views

Should I submit this as a bug?

Thanks,
--
Bil

0 Kudos
Kevin_D_Intel
Employee
554 Views

No, I will take care of that for you. It does appear the warningis erroneous. I will post an update when I have more from the Fortran compiler development team. (Internal ref. CQ-109905)

0 Kudos
Kevin_D_Intel
Employee
554 Views


I verified the issue with the erroneous warning will be fixed in our upcoming 11.1 release this summer.

(Resolution Update on 6/30/2009): This defect is fixed in the Intel Fortran Compiler Professional Edition 11.1 Release (11.1.038 - Linux).

0 Kudos
Reply