1 // PR c++/70202 2 3 class A 4 { foo()5 virtual void foo () { } 6 }; 7 class B : public A, A { }; // { dg-error "duplicate base type" } 8 9 B b1, &b2 = b1; 10 A a = b2; 11