codee-com/open-catalog

[Fortran] Intel's ICE in frontend with incorrect interfaces

Open

#91 geöffnet am 1. Juli 2025

Auf GitHub ansehen
 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)Fortran (12 Forks)auto 404
Fortrangood first issuenew check

Repository-Metriken

Stars
 (105 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

Assuming one has the following code:

subroutine test_b(b)
  real(8) :: b
  interface
    subroutine test_a
    end subroutine test_a
  end interface
  call test_a
end subroutine test_b

subroutine test_a(a)
  real :: a
end subroutine test_a

Intel Fortran frontend fails with ICE that makes difficult to determine a place where the errors are. An example: https://godbolt.org/z/f4hj99f88

The issue comes from using of incompatible interfaces (or declaration + interface) in single file.

Original report on Intel Fortran Compiler Forum: https://community.intel.com/t5/Intel-Fortran-Compiler/ICE-ifx-with-interface-declara/m-p/1538601/highlight/true#M168920

Contributor Guide