- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
Consider the following minimal working example:
module lib
type t
real,allocatable::v(:)
end type
contains
type(t)function f(o,i)
class(t),intent(in)::o
integer,intent(in)::i
f=t(REAL(i)*o%v) ! any function instead of `REAL` can be here; compiles with `f=t(o%v*REAL(i))`
end
end
program prog
use lib
end
Compilation of this code with the Intel compiler (ifort 2021.8.0 and ifx 2023.0.0 on Ubuntu 18.04.2 LTS) and without any flags fails with the following output:
test.F90(9): internal error: Please visit 'http://www.intel.com/software/products/support' for assistance.
f=t(REAL(i)*o%v) ! any function instead of `REAL` can be here; compiles with `f=t(o%v*REAL(i))`
^
test.F90(9): catastrophic error: Internal Compiler Error: Ref module: ffe_ccvt.c
compilation aborted for m.F90 (code 1)
But changing the order of multiplicands in line 9 solves the problem.
1 Solução
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
Good news! Both ifx and ifort compile this reproducer successfully with the compilers that will be released in the spring.
There will be an announcement on this Forum (and others) when it is available.
Link copiado
1 Responder
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
Good news! Both ifx and ifort compile this reproducer successfully with the compilers that will be released in the spring.
There will be an announcement on this Forum (and others) when it is available.

Responder
Opções do tópico
- Subscrever fonte RSS
- Marcar tópico como novo
- Marcar tópico como lido
- Flutuar este Tópico para o utilizador atual
- Marcador
- Subscrever
- Página amigável para impressora