------- Comment #3 from jvdelisle at gcc dot gnu dot org 2005-10-26 02:44 ------- With the first case given, I get a segfault on i686-pc-linux-gnu. gcc version 4.1.0 20051025 (experimental)
$ cat diag.nml &DIAGS NAMES = 'ETAN' 'ETANSQ' 'DETADT2' 'PHIBOT' 'PHIBOTSQ' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' ''/ (gdb) bt #0 0x0073d86c in memcpy () from /lib/libc.so.6 #1 0x0021584e in nml_read_obj (nl=0x96293d0, offset=0) at ../../../gccdev/libgfortran/io/list_read.c:2008 #2 0x00216312 in *_gfortrani_namelist_read () at ../../../gccdev/libgfortran/io/list_read.c:2297 #3 0x00219b6d in finalize_transfer () at ../../../gccdev/libgfortran/io/transfer.c:1813 #4 0x00219c9b in *_gfortran_st_read_done () at ../../../gccdev/libgfortran/io/transfer.c:1962 #5 0x08048864 in MAIN__ () #6 0x08048953 in main (argc=1, argv=0xbfa29604) at ../../../gccdev/libgfortran/fmain.c:18 I also found this while debugging the list_read.c on PR24416. I am not sure these are related. I am working on the segfault now. -- jvdelisle at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jvdelisle at gcc dot gnu dot | |org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24459