------- Comment #2 from fxcoudert at gcc dot gnu dot org 2009-03-29 08:35 ------- The testcase segfaults for me on current trunk on x86_64-linux, this is what gdb says:
a.f90:3.14: WRITE(*, FMT(1:9) ) ! Invalid 1:9 is regarded as array bounds not at substring 1 Warning: Upper array reference at (1) is out of bounds (9 > 1) in dimension 1 Program received signal SIGSEGV, Segmentation fault. 0x000000000049780d in gfc_conv_scalarized_array_ref (se=0x7fff47f3e780, ar=0xa8af678) at ../../trunk/gcc/fortran/trans-array.c:2409 warning: Source file is more recent than executable. 2409 n = se->loop->order[0]; (gdb) bt #0 0x000000000049780d in gfc_conv_scalarized_array_ref (se=0x7fff47f3e780, ar=0xa8af678) at ../../trunk/gcc/fortran/trans-array.c:2409 #1 0x00000000004990e5 in gfc_conv_array_ref (se=0x7fff47f3e780, ar=0xa8af678, sym=0xa8ac1d0, where=0x0) at ../../trunk/gcc/fortran/trans-array.c:2457 #2 0x00000000004b2ba2 in gfc_conv_variable (se=0x7fff47f3e780, expr=0xa8af5a0) at ../../trunk/gcc/fortran/trans-expr.c:679 #3 0x00000000004bfed5 in set_string (block=<value optimized out>, postblock=<value optimized out>, var=<value optimized out>, type=<value optimized out>, e=0xa8af5a0) at ../../trunk/gcc/fortran/trans-io.c:597 #4 0x00000000004c1b46 in build_dt (function=<value optimized out>, code=<value optimized out>) at ../../trunk/gcc/fortran/trans-io.c:1748 -- fxcoudert at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Known to fail| |4.4.0 4.5.0 Last reconfirmed|0000-00-00 00:00:00 |2009-03-29 08:35:13 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38568