A will get allocated, with the same shape and bounds as B
end program main 使用:gfortran-8 -std=f2008 -fcheck=all -Wall -Wextra -fbounds-check -fimplicit-none array.f90编译上面的代码 我收到了以下警告: Warning: ‘a.offset‘a.dim[0].ubound’ may be used uninitialized in this function [-Wmaybe-uninitial
我正在尝试将一段代码从Fortran 77移植到Fortran 90,并且我有一个关于在Fortran 77的争论中捕获级别错配的问题。77 (.f文件)和gfortran5.4中,为什么不产生编译错误?当我将其移植到Fortran 90时,相同的代码会产生秩错编译错误。Rank mismatch in argument ‘times’ at (1) (rank-1 and scalar)
在Fortran 77中,这是代码的组织方式。get time