ICE when hypot get two kinds of REAL parameters

ICE when hypot get two kinds of REAL parameters

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

5 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

My environment is:

$ ifort --version
ifort (IFORT) 13.1.0 20130121

Casey's picture

Quote:

A K. wrote:

My environment is:

$ ifort --version
ifort (IFORT) 13.1.0 20130121

also causes ICE on 13.1.1 20130313

Steve Lionel (Intel)'s picture

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.

Steve
Steve Lionel (Intel)'s picture

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.

Steve

Login to leave a comment.