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