// PR c++/99132 // { dg-do compile { target c++11 } } template struct A { T c; }; template struct B { A d; constexpr T operator-> () { return d.c; } B (B &&); }; struct C { virtual void foo (); void bar (B h) { h->foo (); } };