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

ICE when hypot get two kinds of REAL parameters

A_K_2
Beginner
329 Views

Hi, A following program causes ICE. program ice use, intrinsic:: iso_fortran_env, only: OUTPUT_UNIT, REAL64, REAL32 implicit none Real(kind = REAL32):: x Real(kind = REAL64):: y x = 1.0 y = 2.0 write(OUTPUT_UNIT, *) hypot(x, y) stop end program ice

0 Kudos
4 Replies
A_K_2
Beginner
329 Views
My environment is: $ ifort --version ifort (IFORT) 13.1.0 20130121
0 Kudos
Casey
Beginner
329 Views

A K. wrote:

My environment is:

$ ifort --version
ifort (IFORT) 13.1.0 20130121

also causes ICE on 13.1.1 20130313

0 Kudos
Steven_L_Intel1
Employee
329 Views

Thanks for reporting this - I have escalated it to development as issue DPD200244767. As I am sure you are aware, a meaningful error should have been given instead, since the standard requires that the two arguments be the same real kind. Or, we might choose to accept the mixture as an extension, as we do for ATAN2.

0 Kudos
Steven_L_Intel1
Employee
329 Views

I expect this to be fixed in an update scheduled for October. We will do the same as we do for ATAN2 and promote the smaller kind to the bigger kind.

0 Kudos
Reply