module m_haha
implicit none
real :: nan_4
end
program main
use m_haha
implicit none
real :: a
print*,nan_4,a
end program
fcode 发表于 2019-8-18 08:52
-finit-local-zero
-finit-integer=n
-finit-real=
也就是说,module中定义的变量不是local的?fcode 发表于 2019-8-19 15:10
不是,只有子程序(函数)的局部变量,主程序的变量,才叫“local variables” ...
local.pdf
(251.37 KB, 下载次数: 1)
| 欢迎光临 Fortran Coder (http://bbs.fcode.cn/) | Powered by Discuz! X3.2 |