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

ifx 2025.2 regression: ICE with omp workshare

Harald1
New Contributor II
571 Views

Hello,

the following snippet reproduces an ICE I see with ifx 2025.2.0 Build 20250605 on Linux:

! ifx 2025.2.0 Build 20250605 crashes on the workshare construct below
! compile with: ifx -fopenmp -c ifx-openmp-workshare.f90

subroutine s(W, P, i, j, k)
  integer :: i, j, k
  real    :: W(:,:,:,:), P(:,:)

!$omp parallel workshare
  W(i,j,:k,:k) = P(:k,:k)
!$omp end parallel workshare

end subroutine s

I get:

% ifx -fopenmp -c ifx-openmp-workshare.f90
 #0 0x00000000033b7157 (/opt/intel/oneapi/compiler/2025.2/bin/compiler/xfortcom+0x33b7157)
 #1 0x00000000033a2a8a (/opt/intel/oneapi/compiler/2025.2/bin/compiler/xfortcom+0x33a2a8a)
 #2 0x000000000340d534 (/opt/intel/oneapi/compiler/2025.2/bin/compiler/xfortcom+0x340d534)
 #3 0x000000000340dc6b (/opt/intel/oneapi/compiler/2025.2/bin/compiler/xfortcom+0x340dc6b)
 #4 0x000000000340d886 (/opt/intel/oneapi/compiler/2025.2/bin/compiler/xfortcom+0x340d886)
 #5 0x0000000003405751 (/opt/intel/oneapi/compiler/2025.2/bin/compiler/xfortcom+0x3405751)
 #6 0x0000000003405c87 (/opt/intel/oneapi/compiler/2025.2/bin/compiler/xfortcom+0x3405c87)
 #7 0x0000000003408787 (/opt/intel/oneapi/compiler/2025.2/bin/compiler/xfortcom+0x3408787)
 #8 0x0000000003405751 (/opt/intel/oneapi/compiler/2025.2/bin/compiler/xfortcom+0x3405751)
 #9 0x0000000003402b2e (/opt/intel/oneapi/compiler/2025.2/bin/compiler/xfortcom+0x3402b2e)
#10 0x0000000003405751 (/opt/intel/oneapi/compiler/2025.2/bin/compiler/xfortcom+0x3405751)
#11 0x000000000329623d (/opt/intel/oneapi/compiler/2025.2/bin/compiler/xfortcom+0x329623d)
#12 0x0000000003295be4 (/opt/intel/oneapi/compiler/2025.2/bin/compiler/xfortcom+0x3295be4)
#13 0x0000000003476f7a (/opt/intel/oneapi/compiler/2025.2/bin/compiler/xfortcom+0x3476f7a)
#14 0x00007f9282440e6c __libc_start_call_main (/lib64/libc.so.6+0x40e6c)
#15 0x00007f9282440f35 __libc_start_main@GLIBC_2.2.5 (/lib64/libc.so.6+0x40f35)
#16 0x00000000030d0bae (/opt/intel/oneapi/compiler/2025.2/bin/compiler/xfortcom+0x30d0bae)

ifx-openmp-workshare.f90(8): error #5623: **Internal compiler error: internal abort** Please report this error along with the circumstances in which it occurred in a Software Problem Report.  Note: File and line given may not be explicit cause of this error.
!$omp parallel workshare
------^
compilation aborted for ifx-openmp-workshare.f90 (code 3)

 Changes to the array section on the lhs may make the code compile.

Previous releases did not show any issues with the above.

Thanks,

Harald

 

0 Kudos
0 Replies
Reply