[Bug c++/58477] ice in cgraph_speculative_call_info

markus at trippelsdorf dot de gcc-bugzilla@gcc.gnu.org
Thu Sep 19 18:19:00 GMT 2013


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

Markus Trippelsdorf <markus at trippelsdorf dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |markus at trippelsdorf dot de

--- Comment #1 from Markus Trippelsdorf <markus at trippelsdorf dot de> ---
markus@x4 tmp % cat test.ii
struct A {
  void operator==(const A &);
};
class B {
public:
  A m_fn1();
  A m_fn2();
};
template <typename T, typename M> class C {
public:
  T Key;
  const M &m_fn2(const T &);
  virtual void m_fn1() {}
  B _map;
};

C<int, int> b;
template <typename T, typename M> const M &C<T, M>::m_fn2(const T &) {
  A a = _map.m_fn2();
  a == _map.m_fn1();
  m_fn1();
}

void fn1() { b.m_fn2(0); }

markus@x4 tmp % g++ -O2 test.ii
test.ii: In function ‘void fn1()’:
test.ii:24:24: internal compiler error: Segmentation fault


More information about the Gcc-bugs mailing list