This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/17273] [3.5 Regression] ICE in get_indirect_ref_operands


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]