------- Comment #2 from dfranke at gcc dot gnu dot org  2007-06-24 10:43 -------
Reduced testcase and backtrace:

$> cat pr32478.f90
subroutine foo_bar_phi_foo(bar_phi)
  real, dimension(:,:,:,:,:,:) :: bar_phi
  bar_phi = 0.0
end subroutine foo_bar_phi_foo

$> gfortran-svn -O1 pr32478.f90
pr32478.f90: In function 'foo_bar_phi_foo':
pr32478.f90:1: internal compiler error: in build2_stat, at tree.c:3074


(gdb) break tree.c:3074
Breakpoint 1, build2_stat (code=MULT_EXPR, tt=0xb7cefc3c, arg0=0xb7d74e00,
    arg1=0xb7d701c0) at ../../../gcc/gcc/tree.c:3074
3074        gcc_assert (TREE_CODE (arg0) == INTEGER_CST && TREE_CODE (arg1) ==
INTEGER_CST);
(gdb) bt
#0  build2_stat (code=MULT_EXPR, tt=0xb7cefc3c, arg0=0xb7d74e00,
    arg1=0xb7d701c0) at ../../../gcc/gcc/tree.c:3074
#1  0x086a62d2 in aff_combination_add_elt (comb=0xbff4004c, elt=0xb7d5c9f4,
    scale={low = 4, high = 0}) at ../../../gcc/gcc/tree-affine.c:175
#2  0x086a6790 in aff_combination_add (comb1=0xbff4004c, comb2=0xbff3fdbc)
    at ../../../gcc/gcc/tree-affine.c:202
#3  0x086a6e2d in tree_to_aff_combination (expr=0xb7d74a20, type=0xb7cefc3c,
    comb=0xbff4004c) at ../../../gcc/gcc/tree-affine.c:326
#4  0x083f194d in get_computation_aff (loop=0xb7d6ee60,
    use=<value optimized out>, cand=0x88f95c0, at=0xb7d5939c, aff=0xbff4004c)
    at ../../../gcc/gcc/tree-ssa-loop-ivopts.c:2654
#5  0x083f36f2 in rewrite_use_address (data=0xbff40260, use=0x88cf560,
    cand=0x88f95c0) at ../../../gcc/gcc/tree-ssa-loop-ivopts.c:5086
#6  0x083f40d3 in rewrite_uses (data=0xbff40260)
    at ../../../gcc/gcc/tree-ssa-loop-ivopts.c:5147
#7  0x083f68bd in tree_ssa_iv_optimize_loop (data=0xbff40260,
    loop=<value optimized out>) at ../../../gcc/gcc/tree-ssa-loop-ivopts.c:5346
#8  0x083f6e3e in tree_ssa_iv_optimize ()
    at ../../../gcc/gcc/tree-ssa-loop-ivopts.c:5379
#9  0x08404c75 in tree_ssa_loop_ivopts ()
    at ../../../gcc/gcc/tree-ssa-loop.c:514
#10 0x0829f82f in execute_one_pass (pass=0x880dd20)
    at ../../../gcc/gcc/passes.c:1125
#11 0x0829fa2f in execute_pass_list (pass=0x880dd20)
    at ../../../gcc/gcc/passes.c:1178
#12 0x0829fa42 in execute_pass_list (pass=0x880d9a0)
    at ../../../gcc/gcc/passes.c:1179
#13 0x0829fa42 in execute_pass_list (pass=0x880d1a0)
    at ../../../gcc/gcc/passes.c:1179
#14 0x0837e01c in tree_rest_of_compilation (fndecl=0xb7d4cd80)
    at ../../../gcc/gcc/tree-optimize.c:406
#15 0x084e87d0 in cgraph_expand_function (node=0xb7d4ce80)
    at ../../../gcc/gcc/cgraphunit.c:1073
#16 0x084eaf3c in cgraph_optimize () at ../../../gcc/gcc/cgraphunit.c:1142
#17 0x080b3345 in gfc_be_parse_file (set_yydebug=0)
    at ../../../gcc/gcc/fortran/f95-lang.c:305
#18 0x083219f8 in toplev_main (argc=3, argv=0xbff404a4)
    at ../../../gcc/gcc/toplev.c:1051
#19 0x080f900f in main (argc=-2147352554, argv=0x0)
    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
   GCC host triplet|i386-pc-linux-gnu           |
 GCC target triplet|i386-pc-linux-gnu           |
           Keywords|                            |ice-on-invalid-code
      Known to fail|                            |4.3.0
      Known to work|                            |4.2.1
   Last reconfirmed|0000-00-00 00:00:00         |2007-06-24 10:43:52
               date|                            |
            Summary|ICE on overloaded interface |[4.3 regression] ICE on 6+
                   |                            |dimensional assumed shape
                   |                            |array in -O1


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

Reply via email to