compiling the testcase file (derived from CP2K) as: valgrind --tool=memcheck /data03/vondele/gcc_trunk/build/libexec/gcc/x86_64-unknown-linux-gnu/4.4.0/f951 lapack.f -march=k8 -quiet -dumpbase lapack.F -auxbase lapack -ffree-form -fpreprocessed -fintrinsic-modules-path /data03/vondele/gcc_trunk/build/lib/gcc/x86_64-unknown-linux-gnu/4.4.0/finclude -o lapack.s
yields the following error with valgrind: ==1593== Invalid read of size 1 ==1593== at 0xB51CD1: linemap_add (line-map.c:111) ==1593== by 0xB52040: linemap_line_start (line-map.c:227) ==1593== by 0x46F0CC: load_file (scanner.c:1872) ==1593== by 0x46F574: gfc_new_file (scanner.c:1912) ==1593== by 0x48630F: gfc_init (f95-lang.c:288) ==1593== by 0x7016E8: toplev_main (toplev.c:2041) ==1593== by 0x4C7F153: (below main) (in /lib64/libc-2.4.so) ==1593== Address 0x4F31628 is 0 bytes inside a block of size 47 free'd ==1593== at 0x4A2066B: free (vg_replace_malloc.c:233) ==1593== by 0x46ED61: preprocessor_line (scanner.c:1642) ==1593== by 0x46EE8C: load_file (scanner.c:1800) ==1593== by 0x46F574: gfc_new_file (scanner.c:1912) ==1593== by 0x48630F: gfc_init (f95-lang.c:288) ==1593== by 0x7016E8: toplev_main (toplev.c:2041) ==1593== by 0x4C7F153: (below main) (in /lib64/libc-2.4.so) -- Summary: possible issue with opening fortran files? Product: gcc Version: 4.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jv244 at cam dot ac dot uk http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36276