------- Comment #2 from paul dot richard dot thomas at cea dot fr 2006-06-21
10:24 -------
This reduced version produces the same error
character(12) :: a(2)
call foo (a(:)(7:11))
end
(gdb) run PR28118.f90
Starting program: /irun/libexec/gcc/i686-pc-cygwin/4.2.0/f951.exe PR28118.f90
MAIN__
Program received signal SIGSEGV, Segmentation fault.
0x0048a297 in gfc_conv_expr_descriptor (se=0x22eb70, expr=0x101ff150,
ss=0x1020f730) at ../../trunk/gcc/fortran/trans-array.c:4203
4203 loop.temp_ss->string_length = expr->ts.cl->backend_decl;
(gdb) backtrace
#0 0x0048a297 in gfc_conv_expr_descriptor (se=0x22eb70, expr=0x101ff150,
ss=0x1020f730) at ../../trunk/gcc/fortran/trans-array.c:4203
#1 0x0048a682 in gfc_conv_array_parameter (se=0x22eb70, expr=0x101ff150,
ss=0x1020f730, g77=1) at ../../trunk/gcc/fortran/trans-array.c:4485
#2 0x0049924a in gfc_conv_function_call (se=0x22ed20, sym=0x101ff018,
arg=0x101ff0b8) at ../../trunk/gcc/fortran/trans-expr.c:1953
#3 0x004ad94c in gfc_trans_call (code=0x101ff418, dependency_check=0 '\0')
at ../../trunk/gcc/fortran/trans-stmt.c:336
#4 0x00480d05 in gfc_trans_code (code=0x101ff418)
at ../../trunk/gcc/fortran/trans.c:509
#5 0x004954f6 in gfc_generate_function_code (ns=0x101feb40)
at ../../trunk/gcc/fortran/trans-decl.c:2990
#6 0x00451cfd in gfc_parse_file () at ../../trunk/gcc/fortran/parse.c:3206
#7 0x00474530 in gfc_be_parse_file (set_yydebug=0)
at ../../trunk/gcc/fortran/f95-lang.c:303
#8 0x0051eab0 in compile_file () at ../../trunk/gcc/toplev.c:999
#9 0x00520b8b in do_compile () at ../../trunk/gcc/toplev.c:1970
#10 0x00520c15 in toplev_main (argc=2, argv=0x10102068)
at ../../trunk/gcc/toplev.c:2002
#11 0x004b7637 in main (argc=2, argv=0x10102068) at ../../trunk/gcc/main.c:35
I will confirm it tonight.
Paul
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28118