------- Comment #94 from jv244 at cam dot ac dot uk 2007-04-24 15:27 ------- In fact, gfortran gives a hint here. The file that gets miscompiled produces the following warnings:
cp2k/obj/Linux-x86-64-gfortran/sdbg> gfortran -c -O2 -g -Wall -Wextra ai_overlap_new.f90 ai_overlap_new.f90: In function overlap: ai_overlap_new.f90:60: warning: offset.8 may be used uninitialized in this function ai_overlap_new.f90:60: warning: stride.7 may be used uninitialized in this function ai_overlap_new.f90:60: warning: stride.5 may be used uninitialized in this function ai_overlap_new.f90:60: warning: pab.0 may be used uninitialized in this function ai_overlap_new.f90:60: warning: offset.16 may be used uninitialized in this function ai_overlap_new.f90:60: warning: stride.15 may be used uninitialized in this function ai_overlap_new.f90:60: warning: stride.13 may be used uninitialized in this function ai_overlap_new.f90:60: warning: stride.11 may be used uninitialized in this function ai_overlap_new.f90:60: warning: sdab.0 may be used uninitialized in this function -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29975