4 extern "C" int printf(const char *, ...);
8 virtual void f0() { } // works fine if this virtual removed
11 class Test1 : public Test0 {
13 void f1() { f2(); } // generates bus error here
14 virtual void f2() { printf("Test1::f2\n"); }
22 class Test3 : public Test2, public Test1 { // works fine if Test1 first
24 virtual ~Test3() { f1(); } // calling f2 directly works
25 virtual void f2() { printf("Test3::f2\n"); }