3 extern "C" int printf(const char *, ...);
7 virtual void f0() { } // works fine if this virtual removed
10 class Test1 : public Test0 {
12 void f1() { f2(); } // generates bus error here
13 virtual void f2() { printf("Test1::f2\n"); }
21 class Test3 : public Test2, public Test1 { // works fine if Test1 first
23 virtual ~Test3() { f1(); } // calling f2 directly works
24 virtual void f2() { printf("Test3::f2\n"); }