Iso binding and nvfortran and missing C_INT?

Hello everyone, just a little confused, it looks like C_INT is not part of nvfortran iso_c_binding? Just an example bit of code:

program iso
  use iso_c_binding
  implicit none
  integer :: i, n

  type(C_INT) :: fft_size
end program

gives the error NVFORTRAN-S-0155-Derived type has not been declared - c_int (test_iso.f95: 6), which seems like the C_INT just isn’t there. Is this correct?

c_int is there, your type syntax is incorrect (your code will not compile also with gfortran).

program iso
  use iso_c_binding
  implicit none
  integer :: i, n

  integer(c_int) ::fft_size

end program
1 Like