------- Comment #3 from dfranke at gcc dot gnu dot org 2007-04-16 20:42 ------- Ups, misread your report. After uncommenting the WRITE, all tested compilers crash.
$> gfortran -v gcc version 4.3.0 20070331 Backtrace: Breakpoint 1, fancy_abort (file=0x86e4fec "../../../gcc/gcc/fortran/trans-array.c", line=3693, function=0x86e55a0 "gfc_conv_array_initializer") at ../../../gcc/gcc/diagnostic.c:656 656 internal_error ("in %s, at %s:%d", function, trim_filename (file), line); (gdb) bt #0 fancy_abort (file=0x86e4fec "../../../gcc/gcc/fortran/trans-array.c", line=3693, function=0x86e55a0 "gfc_conv_array_initializer") at ../../../gcc/gcc/diagnostic.c:656 #1 0x080b7183 in gfc_conv_array_initializer (type=0xb7ce4ec4, expr=0x8894d38) at ../../../gcc/gcc/fortran/trans-array.c:3693 #2 0x080d093c in gfc_conv_initializer (expr=0x8894d38, ts=0x8894720, type=0xb7ce4ec4, array=160 ' ', pointer=109 'm') at ../../../gcc/gcc/fortran/trans-expr.c:2740 #3 0x080c5f86 in gfc_get_symbol_decl (sym=0x8894710) at ../../../gcc/gcc/fortran/trans-decl.c:1018 #4 0x080ccb9d in gfc_conv_expr (se=0xbfea9304, expr=0x8894fd8) at ../../../gcc/gcc/fortran/trans-expr.c:391 #5 0x080cfa9e in gfc_conv_expr_lhs (se=0xbfea9304, expr=0x8894fd8) at ../../../gcc/gcc/fortran/trans-expr.c:3167 #6 0x080b77e6 in gfc_conv_ss_descriptor (block=0xbfea95e4, ss=0x8895220, base=0) at ../../../gcc/gcc/fortran/trans-array.c:1838 #7 0x080ba62c in gfc_conv_expr_descriptor (se=0xbfea95e4, expr=0x8894fd8, ss=0x8895220) at ../../../gcc/gcc/fortran/trans-array.c:4316 #8 0x080dac5e in gfc_trans_transfer (code=0x8895100) at ../../../gcc/gcc/fortran/trans-io.c:1838 #9 0x080b075d in gfc_trans_code (code=0x8895100) at ../../../gcc/gcc/fortran/trans.c:605 #10 0x080dd05d in build_dt (function=0xb7cdce0c, code=0x88951c0) at ../../../gcc/gcc/fortran/trans-io.c:1507 #11 0x080b073d in gfc_trans_code (code=0x88951c0) at ../../../gcc/gcc/fortran/trans.c:581 #12 0x080c7d06 in gfc_generate_function_code (ns=0x885a1e8) at ../../../gcc/gcc/fortran/trans-decl.c:3217 #13 0x0808c2b4 in gfc_parse_file () at ../../../gcc/gcc/fortran/parse.c:3261 #14 0x080ab660 in gfc_be_parse_file (set_yydebug=0) at ../../../gcc/gcc/fortran/f95-lang.c:305 #15 0x0830042d in toplev_main (argc=3, argv=0xbfea9954) at ../../../gcc/gcc/toplev.c:1050 #16 0x080ed162 in main (argc=1600349799, argv=0x766e6f63) at ../../../gcc/gcc/main.c:35 -- dfranke at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dfranke at gcc dot gnu dot | |org Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2007-04-16 20:42:01 date| | Summary|internal compiler error on |ICE: on array initialization |array initialization |statement using 'ubound' |statement using 'ubound' |(fortran/trans-array.c:3693) Version|unknown |4.1.1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31591