- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm encountering a compiler error when defining a named constant (parameter) using the SUM intrinsic on another previously declared named constant (parameter). When compiling the following with IFX 2024.2.1 20240711,...
program computed_parameter_test
implicit none
real, parameter :: xy(1:2) = (/ 1.0 , 2.0 /)
real, parameter :: zz(1:2) = xy / sum(xy)
write(*,*) 'xy=',xy
write(*,*) 'zz=',zz
end program
... I get:
compute_parameter_test.f90(4): internal error: Please visit 'http://www.intel.com/software/products/support' for assistance.
real, parameter :: zz(1:2) = xy / sum(xy)
^
compute_parameter_test.f90(4): catastrophic error: Internal Compiler Error: Ref module: ffe_ccvt.c
compilation aborted for compute_parameter_test.f90 (code 1)
This does not occur with the use of other intrinsics (that I've tried) in the definition of the parameter 'zz' on line 4. IFORT previously compiled without error (gfortran also compiles without error). Is this use of SUM allowed?
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, it's allowed. Internal Compiler Error is always a compiler bug, whether or not the usage is correct.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the reply Steve.
Let me know if I can provide any further info or documentation to help the development team! Cheers.
Let me know if I can provide any further info or documentation to help the development team! Cheers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I was able to reproduce the ICE. Thank you for reporting this to us, @wtdailey. Intel Compiler Engineering will investigate and fix it in future ifx releases.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page