一个简单的代码:
\n\nprogram main\ninteger, allocatable :: A(:,:)\ninteger :: B(3,4)\nB=1\nA = B !A will get allocated, with the same shape and bounds as B\nend program main\n
Run Code Online (Sandbox Code Playgroud)\n\n编译上面的代码:gfortran-8 -std=f2008 -fcheck=all -Wall -Wextra -fbounds-check -fimplicit-none array.f90
我收到以下警告:
\n\nWarning: \xe2\x80\x98a.offset\xe2\x80\x99 may be used uninitialized in this function\nWarning: \xe2\x80\x98a.dim[0].lbound\xe2\x80\x99 may be used uninitialized in this function \nWarning: \xe2\x80\x98a.dim[0].ubound\xe2\x80\x99 may be used uninitialized in this function [-Wmaybe-uninitialized]
有人知道我为什么收到这些警告吗?
\nfortran gfortran compiler-warnings gcc-warning allocatable-array
使用正则表达式\bfoo\b
搜索单词时foo
,结果包括诸如foo_a
和 之类的单词a_foo
。如何从结果中排除这些词?即,如何要求 emacs 不将下划线视为单词边界。