This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/17273] [3.5 Regression] ICE in get_indirect_ref_operands
- 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: 2 Sep 2004 16:37:17 -0000
- Subject: [Bug tree-optimization/17273] [3.5 Regression] ICE in get_indirect_ref_operands
- References: <20040901234529.17273.mueller@kde.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From reichelt at gcc dot gnu dot org 2004-09-02 16:37 -------
With the following condensed testcase I get the failure even earlier:
: Search converges between 2004-08-22-trunk (#521) and 2004-08-23-trunk (#522).
========================================
struct A
{
A& operator= (const A&);
};
struct B
{
A a;
B& foo()
{
bool b;
if (b) return *this;
return *this;
}
};
void bar()
{
B().foo().a = A();
}
========================================
Just compile with "-O" or higher.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
Keywords| |monitored
Known to fail| |3.5.0
Known to work| |3.4.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17273