1 // Build don't link: 2 3 typedef struct base1 { 4 int x; 5 } base1_t; 6 7 typedef struct base2 { 8 int x; 9 } base2_t; 10 11 class derived1 : public base1 { 12 }; 13 14 class derived2 : public derived1, public base2 { 15 }; 16 17 struct test { 18 derived2& fails; test1test19 void test1() { 20 fails.base1::x = 5; 21 } 22 }; 23