- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
A K. wrote:
My environment is:
$ ifort --version
ifort (IFORT) 13.1.0 20130121
also causes ICE on 13.1.1 20130313
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page