This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/20485] [3.4 Regression] ice with -O1 or above
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Mar 2005 01:08:06 -0000
- Subject: [Bug c++/20485] [3.4 Regression] ice with -O1 or above
- References: <20050315165333.20485.jes@bodi-klinke.dk>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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