[Bug tree-optimization/18968] [4.0 regression] ICE: tree check: expected ssa_name, have addr_expr in vrp_hash

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Dec 13 22:22:00 GMT 2004


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-13 22:22 -------
Here is another slightly different reduced testcase:
template<class T> struct F
{
 F(): m_pObj(0) {}
 template<class U> F(F<U> const & rhs): m_pObj(rhs.m_pObj)
 {
   G(m_pObj);
 }
 T * m_pObj;
};
struct Atomic_t {int i;};
inline void G(Atomic_t * p) { p->i++; }
struct X: public virtual Atomic_t {};
struct Y: public X {};
void copy_constructor()
{
  F<Y> py;
  F<X> px1(py);
}

-- 


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



More information about the Gcc-bugs mailing list