[Bug tree-optimization/19641] New: &a[0] == &a[1] is not folded.

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Jan 26 14:17:00 GMT 2005


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



More information about the Gcc-bugs mailing list