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

HPC 2021.4 "abstract interface" ICE

scivision
Neuer Beitragender I
3.032Aufrufe

oneAPI 2021.4 gives better Fortran 2018 support, however the following construct continues to fail with "ifx".

 

Windows:

> ifx -c abstract.f90
xfortcom: Fatal: There has been an internal compiler error (C0000005).
compilation aborted for abstract.f90 (code 1)

Linux:

/intel/oneapi/compiler/2021.4.0/linux/bin/xfortcom[0xd9d2a9]

abstract.f90: error #5633: **Internal compiler error: segmentation violation signal raised** 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.

 

that works with "ifort":

 

module bug

abstract interface
  real function fun()
  end function fun
end interface

contains

subroutine canary(f)
  procedure(fun), pointer, intent(in) :: f
  real :: a

  a = f()
end subroutine canary

end module bug

 

 

Beschriftungen (1)
0 Kudos
1 Lösung
Khalik_K_Intel
Moderator
2.419Aufrufe

Hello,


Barbara is correct. Unfortunately, the fix is not available in the latest release, but it should be included in the next release.

I will update this forum once the fix is available for you. Sorry for any inconvenience caused.


Regards,

Khalik.


Lösung in ursprünglichem Beitrag anzeigen

7 Antworten
Barbara_P_Intel
Mitarbeiter
2.837Aufrufe

Please be aware that many F2018 features are not yet implemented in ifx.  ICE is not a particularly good way to say that, tho.  This article lists the Fortran and OpenMP standards their status with ifx.

 

Khalik_K_Intel
Moderator
2.794Aufrufe

Hello,


Thank you for contacting Intel Support.

I agree with Barbara that ICE is not a best way to indicate an unsupported feature.

I have contacted Intel Fortran Development team to get this fixed.


Regards,

Khalik.


FortranFan
Geehrter Beitragender III
2.761Aufrufe

@Barbara_P_Intel , @Khalik_K_Intel ,

 

Technically the code in the original post refers to a Fortran 2003 feature.  The Intel link provided by Barbara above re: support for modern Fortran features in IFX doesn't get into details adequately here but the suggestion from the table in that link is IFX supports this.   Thus the ICE may simply be due to a compiler bug in IFX rather than missing support, worth a check with the compiler team.  

scivision
Neuer Beitragender I
2.499Aufrufe

This Fortran 2003 `abstract interface` is still broken in oneAPI 2022.1 release with same symptoms/error.

Barbara_P_Intel
Mitarbeiter
2.447Aufrufe

I just checked the bug report.  It looks like the fix will be in the next release in calendar year 2022.

 

Khalik_K_Intel
Moderator
2.420Aufrufe

Hello,


Barbara is correct. Unfortunately, the fix is not available in the latest release, but it should be included in the next release.

I will update this forum once the fix is available for you. Sorry for any inconvenience caused.


Regards,

Khalik.


scivision
Neuer Beitragender I
2.220Aufrufe

I was mistaken about release numbers. The oneAPI 2022.1 release did fix this issue. Thank you.

Antworten