1 2 3 4 5 6 7 8 9 10 11 12
struct A { }; struct B : public A { }; struct X { operator B(); }; X x; int main() { const A& r = x; return 0; }