Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.

HPC 2021.4 "abstract interface" ICE

scivision
Novice
946 Views

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

 

 

Labels (1)
0 Kudos
1 Solution
Khalik_K_Intel
Moderator
333 Views

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.


View solution in original post

7 Replies
Barbara_P_Intel
Moderator
751 Views

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
708 Views

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
Honored Contributor II
675 Views

@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
Novice
413 Views

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

Barbara_P_Intel
Moderator
361 Views

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
334 Views

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
Novice
134 Views

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

Reply