Fortranで引っかかる書き方
save属性が付く
code:fortran
function hoge()
implicit none
integer :: a = 10
a = 1
end function
参考ページ:
https://amanotk.github.io/fortran-resume-public/chap07_sample4_f90.html
動的割り付け文字列で read 文を受けられない
code:fortran
character(:), allocatable::hoge
read(unit, '(a)') hoge
segmentation fault になります。