public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/26212]  New: ICE in create_component_ref_by_pieces
@ 2006-02-10 13:34 mueller at gcc dot gnu dot org
  2006-02-10 13:40 ` [Bug middle-end/26212] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: mueller at gcc dot gnu dot org @ 2006-02-10 13:34 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1010 bytes --]

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


-- 
           Summary: ICE in create_component_ref_by_pieces
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mueller at gcc dot gnu dot org


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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug middle-end/26212] ICE in create_component_ref_by_pieces
  2006-02-10 13:34 [Bug middle-end/26212] New: ICE in create_component_ref_by_pieces mueller at gcc dot gnu dot org
@ 2006-02-10 13:40 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-10 13:40 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-02-10 13:40 -------
This is a dup of bug 26179 which was just fixed yesterday.

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


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-02-10 13:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-10 13:34 [Bug middle-end/26212] New: ICE in create_component_ref_by_pieces mueller at gcc dot gnu dot org
2006-02-10 13:40 ` [Bug middle-end/26212] " pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).