[Bug tree-optimization/48165] [4.6/4.7 Regression] gcc-4.6: internal compiler error: in build2_stat

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Mar 17 12:02:00 GMT 2011


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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2011.03.17 11:46:28
         AssignedTo|unassigned at gcc dot       |rguenth at gcc dot gnu.org
                   |gnu.org                     |
   Target Milestone|---                         |4.6.0
            Summary|gcc-4.6: internal compiler  |[4.6/4.7 Regression]
                   |error: in build2_stat       |gcc-4.6: internal compiler
                   |                            |error: in build2_stat
     Ever Confirmed|0                           |1

--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-03-17 11:46:28 UTC ---
Confirmed.  We build x + 4 and 4 is of pointer type from

#7  0x0000000000d03722 in compute_object_offset (expr=0x7ffff5b9ddc8, 
    var=0x7ffff5ba20a0)
    at /space/rguenther/src/svn/trunk/gcc/tree-object-size.c:152
152       return size_binop (code, base, off);

pointer base 4, offset (sizetype)x * 4 but with code == PLUS_EXPR.  I suppose
base shouldn't be pointer type here.

Mine.



More information about the Gcc-bugs mailing list