- Contrassegnare come Nuovo
- Preferito
- Iscriversi
- Disattiva notifiche
- Iscriversi a feed RSS
- Evidenziare
- Stampare
- Segnalare contenuto inappropriato
IFX crashes when you try to call the intrinsic transfer function with as 'source' parameter an infinitely polymorphic variable. Minimal example below:
program main
character(:), allocatable :: buffer
integer :: v
call transf_generic(v)
contains
subroutine transf_generic(val)
class(*), intent(in) :: val
allocate(character(storage_size(val)/8) :: buffer)
buffer = transfer(val, buffer)
end subroutine
end program
This can be fixed by altering transf_generic in the above example in the following way:
subroutine transf_generic(val)
class(*), intent(in) :: val
allocate(character(storage_size(val)/8) :: buffer)
select type (val)
type is (integer)
buffer = transfer(val, buffer)
end select
end subroutine
Therefore it seems clear that the problem lies specifically in handling the generic nature of the input bitstring to the transfer function.
- Contrassegnare come Nuovo
- Preferito
- Iscriversi
- Disattiva notifiche
- Iscriversi a feed RSS
- Evidenziare
- Stampare
- Segnalare contenuto inappropriato
What version of ifx are you using?
It compiles without error for me using ifx 2023.2.0. It was released as part of the oneAPI HPC Toolkit 2023.2 in mid-July.
Link copiato
- Contrassegnare come Nuovo
- Preferito
- Iscriversi
- Disattiva notifiche
- Iscriversi a feed RSS
- Evidenziare
- Stampare
- Segnalare contenuto inappropriato
What version of ifx are you using?
It compiles without error for me using ifx 2023.2.0. It was released as part of the oneAPI HPC Toolkit 2023.2 in mid-July.
- Contrassegnare come Nuovo
- Preferito
- Iscriversi
- Disattiva notifiche
- Iscriversi a feed RSS
- Evidenziare
- Stampare
- Segnalare contenuto inappropriato
I was using 2023.1.0. Must have installed a few days before the new version came out. Upgrading the compiler fixed the problem. Thanks for the help and sorry for failing to check I had the newest version of IFX before posting..

- Iscriversi a feed RSS
- Contrassegnare la discussione come nuova
- Contrassegnare la discussione come letta
- Sposta questo Discussione per l'utente corrente
- Preferito
- Iscriversi
- Pagina in versione di stampa