[Bug middle-end/14672] [tree-ssa] ICE: verify_stmts failed/ Invalid operand to binary operator

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sun Mar 21 21:38:00 GMT 2004


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-03-21 21:38 -------
The code is invalid (because of the cast to the wrong to type) but here is an example where it still ICEs 
on the valid code:
typedef struct s {
    int x;
} ts, *pts;
static ts a[1];
void f(int n)
{
    pts t;
    t = &a[n - 200];
}

*.useless is adding casts for some reason.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
          Component|c                           |middle-end
     Ever Confirmed|                            |1
           Keywords|                            |ice-on-valid-code
   Last reconfirmed|0000-00-00 00:00:00         |2004-03-21 21:38:40
               date|                            |
            Summary|ICE: verify_stmts failed/   |[tree-ssa] ICE: verify_stmts
                   |Invalid operand to binary   |failed/ Invalid operand to
                   |operator                    |binary operator
   Target Milestone|---                         |tree-ssa


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



More information about the Gcc-bugs mailing list