Bug 19641 - &a[0] == &a[1] is not folded.
Summary: &a[0] == &a[1] is not folded.
Status: RESOLVED DUPLICATE of bug 15791
Alias: None
Product: gcc
Classification: Unclassified
Component: tree-optimization (show other bugs)
Version: 4.0.0
: P2 enhancement
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: missed-optimization, TREE
Depends on:
Blocks:
 
Reported: 2005-01-26 14:17 UTC by Andrew Pinski
Modified: 2005-07-23 22:49 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Pinski 2005-01-26 14:17:10 UTC
int foo(void)
{
        int i[2];
        if (&i[0] == &i[1])
                return 1;
        return 0;
}

We should get 0.
Comment 1 Andrew Pinski 2005-01-26 14:18:51 UTC
Woops I knew I had filed this before.

*** This bug has been marked as a duplicate of 15791 ***

*** This bug has been marked as a duplicate of 15791 ***