http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48574
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-04-12 21:03:34 UTC --- Reduced testcase (ICEs even with no options): struct A { virtual void foo (); }; template <typename T> void bar (T x) { A &b = *x; b.foo (); }