[Bug c++/20485] [3.4 Regression] ice with -O1 or above

reichelt at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Mar 16 01:08:00 GMT 2005


------- Additional Comments From reichelt at gcc dot gnu dot org  2005-03-16 01:08 -------
Here's a reduced testcase:

====================================
struct A
{
    A* foo() { return 0; }
};

void foo(A *p)
{
    return;
    if (A *q = p) p = q->foo();
}
====================================

I can't reproduce the bug (neither with the original testcase nor with
the reduced one) with the current 3.4 branch.

I think this is a duplicate of PR17827.


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

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


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



More information about the Gcc-bugs mailing list