int foo(void)
{
        int i[2];
        if (&i[0] == &i[1])
                return 1;
        return 0;
}

We should get 0.

-- 
           Summary: &a[0] == &a[1] is not folded.
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Keywords: missed-optimization, TREE
          Severity: enhancement
          Priority: P2
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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

Reply via email to