[Bug fortran/31971] Simple Fortran code fails with ICE

magnus_os at yahoo dot se gcc-bugzilla@gcc.gnu.org
Tue May 22 15:38:00 GMT 2007



------- Comment #6 from magnus_os at yahoo dot se  2007-05-22 16:38 -------
I've reproduced the problem on the official 2007-05-18 snapshot. This backtrace
is from that:


Program received signal SIGILL, Illegal instruction.
0x086b7d19 in mpfr_ceil_double ()
(gdb) where
#0  0x086b7d19 in mpfr_ceil_double ()
#1  0x086b7dd2 in mpfr_get_str_compute_g ()
#2  0x086b8160 in mpfr_get_str ()
#3  0x0829cb6e in real_from_mpfr (r=0xbf9a8af0, m=0x9c1dc4c, type=0xb7c81b64, 
    rndmode=GMP_RNDN) at ../../gcc-4.3-20070518/gcc/real.c:5045
#4  0x080c2c36 in gfc_conv_mpfr_to_tree (f=0x9c1dc4c, kind=8)
    at ../../gcc-4.3-20070518/gcc/fortran/trans-const.c:186
#5  0x080c30c5 in gfc_conv_constant_to_tree (expr=0x9c1dc18)
    at ../../gcc-4.3-20070518/gcc/fortran/trans-const.c:233
#6  0x080c315a in gfc_conv_constant (se=0xbf9a8cfc, expr=0x9c1dc18)
    at ../../gcc-4.3-20070518/gcc/fortran/trans-const.c:295
#7  0x080d0a1c in gfc_conv_expr (se=0xbf9a8cfc, expr=0x9c1dc18)
    at ../../gcc-4.3-20070518/gcc/fortran/trans-expr.c:3157
#8  0x080d0cbb in gfc_conv_expr (se=0xbf9a8da8, expr=0x9c1dc70)
    at ../../gcc-4.3-20070518/gcc/fortran/trans-expr.c:1142
#9  0x080d3003 in gfc_conv_expr_val (se=0xbf9a8da8, expr=0x402a0000)
    at ../../gcc-4.3-20070518/gcc/fortran/trans-expr.c:3206
#10 0x080ea997 in gfc_trans_if_1 (code=0x9c1daa0)
    at ../../gcc-4.3-20070518/gcc/fortran/trans-stmt.c:588
#11 0x080b44c5 in gfc_trans_code (code=0x9c1dcc8)
    at ../../gcc-4.3-20070518/gcc/fortran/trans.c:614
#12 0x080ec3d0 in gfc_trans_do (code=0x9c1d770)
    at ../../gcc-4.3-20070518/gcc/fortran/trans-stmt.c:750
#13 0x080b44a3 in gfc_trans_code (code=0x9c1d770)
    at ../../gcc-4.3-20070518/gcc/fortran/trans.c:622
#14 0x080ca013 in gfc_generate_function_code (ns=0x9be2940)
    at ../../gcc-4.3-20070518/gcc/fortran/trans-decl.c:3183
#15 0x0808d6cf in gfc_parse_file ()
    at ../../gcc-4.3-20070518/gcc/fortran/parse.c:3264
#16 0x080ae52d in gfc_be_parse_file (set_yydebug=0)
    at ../../gcc-4.3-20070518/gcc/fortran/f95-lang.c:303
#17 0x08300148 in toplev_main (argc=14, argv=0xbf9a90e4)
    at ../../gcc-4.3-20070518/gcc/toplev.c:1051
#18 0x080f20df in main (argc=Cannot access memory at address 0x1
) at ../../gcc-4.3-20070518/gcc/main.c:35


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31971



More information about the Gcc-bugs mailing list