Regression with parameter_array_init_3.f90

Steve Kargl sgk@troutmask.apl.washington.edu
Wed Jan 9 14:17:00 GMT 2008


On amd64-*-freebsd, I'm seeing the following ICE with
today's svn of trunk.

troutmask:sgk[240] gfc4x -c parameter_array_init_3.f90
f951: internal compiler error: Segmentation fault: 11
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

gdb gives

#0  0x00000002010138b0 in __gmpn_add_n () from /usr/local/lib/libgmp.so.7
#1  0x00000002010001bd in __gmpz_add () from /usr/local/lib/libgmp.so.7
#2  0x0000000000423b62 in simplify_const_ref (p=0x201497900)
    at ../../gcc4x/gcc/fortran/expr.c:1049
#3  0x0000000000424135 in gfc_simplify_expr (p=0x201497900, type=1)
    at ../../gcc4x/gcc/fortran/expr.c:1666
#4  0x000000000042441a in simplify_parameter_variable (p=0x2014976c0, type=1)
    at ../../gcc4x/gcc/fortran/expr.c:1533
#5  0x0000000000424165 in gfc_simplify_expr (p=0x2014976c0, type=1)
    at ../../gcc4x/gcc/fortran/expr.c:1638
#6  0x000000000040a305 in expand_constructor (c=0x201452060)
    at ../../gcc4x/gcc/fortran/array.c:1379
#7  0x000000000040a4fb in expand_constructor (c=0x201452010)
    at ../../gcc4x/gcc/fortran/array.c:1256
#8  0x000000000040a9ef in gfc_array_size (array=0x2014973c0, 
    result=0x7fffffffdcb0) at ../../gcc4x/gcc/fortran/array.c:1977
#9  0x000000000045a5af in expression_rank (e=0x2014973c0)
    at ../../gcc4x/gcc/fortran/resolve.c:3932
#10 0x000000000045bc68 in gfc_resolve_expr (e=0x2014973c0)
    at ../../gcc4x/gcc/fortran/resolve.c:4310
#11 0x0000000000425427 in gfc_match_init_expr (result=0x7fffffffdf70)
    at ../../gcc4x/gcc/fortran/expr.c:2325
#12 0x000000000041be72 in gfc_match_data_decl ()
    at ../../gcc4x/gcc/fortran/decl.c:1738
#13 0x000000000044f843 in match_word (str=Variable "str" is not available.)
    at ../../gcc4x/gcc/fortran/parse.c:64
#14 0x000000000044fe28 in decode_statement ()
    at ../../gcc4x/gcc/fortran/parse.c:133
#15 0x00000000004509c5 in next_statement ()
    at ../../gcc4x/gcc/fortran/parse.c:505
#16 0x0000000000451bc5 in parse_spec (st=ST_DATA_DECL)

I have libgmp-4.2.2 installed.


-- 
Steve



More information about the Fortran mailing list