Gfortran 12 bind(C) spurious warning fixed
This code triggered a spurious warning in GFortran 12:
program demo
use, intrinsic :: iso_c_binding, only : c_int
implicit none
interface
subroutine fun(f_p) bind(c)
import c_int
integer(c_int), pointer, intent(out) :: f_p(:)
end subroutine
end interface
integer(c_int), pointer :: f(:)
nullify(f)
call fun(f)
end program
This bug was fixed in GCC 13.1.