This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: Fortran whole file patch
> Steve,
>
> > See http://gcc.gnu.org/ml/gcc-bugs/2009-05/msg00112.html
>
> Thanks - I had taken note of it.
I've manually applied the patch and it turns errors into warnings, but
still I get ICE:
Program received signal SIGSEGV, Segmentation fault.
0x00000000004e9c90 in resolve_branch (label=0x1889390, code=0x1894ca0) at ../../gcc/fortran/resolve.c:6170
6170 if (bitmap_bit_p (cs_base->reachable_labels, label->value))
(gdb) bt
#0 0x00000000004e9c90 in resolve_branch (label=0x1889390, code=0x1894ca0) at ../../gcc/fortran/resolve.c:6170
#1 0x00000000004ec314 in resolve_code (code=0x1894ca0, ns=<value optimized out>) at ../../gcc/fortran/resolve.c:6862
#2 0x00000000004ec5e3 in resolve_codes (ns=<value optimized out>) at ../../gcc/fortran/resolve.c:10727
#3 0x00000000004ec6bf in gfc_resolve (ns=0x187cb50) at ../../gcc/fortran/resolve.c:10751
#4 0x00000000004ec7b7 in resolve_global_procedure (sym=<value optimized out>, where=0x1500f98, actual=0x1500ff0, sub=<value optimized out>)
at ../../gcc/fortran/resolve.c:1674
#5 0x00000000004ea5fd in resolve_call (c=0x1500f80) at ../../gcc/fortran/resolve.c:3006
#6 0x00000000004eaf48 in resolve_typebound_call (c=<value optimized out>) at ../../gcc/fortran/resolve.c:4758
#7 resolve_code (code=0x1500f80, ns=<value optimized out>) at ../../gcc/fortran/resolve.c:6931
#8 0x00000000004ec5e3 in resolve_codes (ns=<value optimized out>) at ../../gcc/fortran/resolve.c:10727
#9 0x00000000004ec6bf in gfc_resolve (ns=0x14d85f0) at ../../gcc/fortran/resolve.c:10751
#10 0x00000000004ec7b7 in resolve_global_procedure (sym=<value optimized out>, where=0x14c61f8, actual=0x14c6250, sub=<value optimized out>)
at ../../gcc/fortran/resolve.c:1674
#11 0x00000000004ea5fd in resolve_call (c=0x14c61e0) at ../../gcc/fortran/resolve.c:3006
#12 0x00000000004eaf48 in resolve_typebound_call (c=<value optimized out>) at ../../gcc/fortran/resolve.c:4758
#13 resolve_code (code=0x14c61e0, ns=<value optimized out>) at ../../gcc/fortran/resolve.c:6931
#14 0x00000000004ec5e3 in resolve_codes (ns=<value optimized out>) at ../../gcc/fortran/resolve.c:10727
#15 0x00000000004ec6bf in gfc_resolve (ns=0x1496100) at ../../gcc/fortran/resolve.c:10751
#16 0x00000000004ec7b7 in resolve_global_procedure (sym=<value optimized out>, where=0x1496088, actual=0x14960e0, sub=<value optimized out>)
at ../../gcc/fortran/resolve.c:1674
#17 0x00000000004ea5fd in resolve_call (c=0x1496070) at ../../gcc/fortran/resolve.c:3006
#18 0x00000000004eaf48 in resolve_typebound_call (c=<value optimized out>) at ../../gcc/fortran/resolve.c:4758
#19 resolve_code (code=0x1496070, ns=<value optimized out>) at ../../gcc/fortran/resolve.c:6931
#20 0x00000000004ec5e3 in resolve_codes (ns=<value optimized out>) at ../../gcc/fortran/resolve.c:10727
#21 0x00000000004ec6bf in gfc_resolve (ns=0x14195d0) at ../../gcc/fortran/resolve.c:10751
#22 0x00000000004e1296 in gfc_parse_file () at ../../gcc/fortran/parse.c:3902
#23 0x000000000051246d in gfc_be_parse_file (set_yydebug=<value optimized out>) at ../../gcc/fortran/f95-lang.c:233
#24 0x00000000007e2014 in compile_file () at ../../gcc/toplev.c:977
#25 do_compile () at ../../gcc/toplev.c:2256
#26 toplev_main (argc=4, argv=0x7fffffffe9a8) at ../../gcc/toplev.c:2301
#27 0x00002aaaaace24ca in __libc_start_main () from /lib/libc.so.6
#28 0x00000000004845ca in _start () at ../sysdeps/x86_64/elf/start.S:113