Bug 26212 - ICE in create_component_ref_by_pieces
Summary: ICE in create_component_ref_by_pieces
Status: RESOLVED DUPLICATE of bug 26179
Alias: None
Product: gcc
Classification: Unclassified
Component: middle-end (show other bugs)
Version: 4.2.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-10 13:34 UTC by Dirk Mueller
Modified: 2006-02-10 13:40 UTC (History)
3 users (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 Dirk Mueller 2006-02-10 13:34:20 UTC
this testcase segfaults: 

=== Cut ===
class A
{
public:
    A()·{ x1 = 0; x2 = -1; } 

    int·   x()· ·       const { return x1; }
    void   setX( int x ) { x1 = x; }

    int·   width()·     const { return x2 - x1 + 1; }
    void   setWidth( int w );

private:
    int x1;
    int x2;
};

A breakme()
{
    A r;

    for( int i=0 ; i < 2; i++ )
    {
        if (r.width() < r.x())
            r.setX(4);
        if (5 > r.width())
            r.setWidth(r.x());
    }

   return r;
}
=== Cut ===
g++ -O2  -c test.cpp
test.cpp:17:  internal compiler error: in create_component_ref_by_pieces, at tree-ssa-pre.c:2167
Comment 1 Andrew Pinski 2006-02-10 13:40:06 UTC
This is a dup of bug 26179 which was just fixed yesterday.

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