1 // Red Hat bug 750545 2 // { dg-do run { target { ! c++11 } } } 3 4 class excep {}; 5 class A 6 { 7 public: ~A()8 ~A() { throw excep(); } 9 }; 10 11 class B 12 { 13 A a; 14 }; 15 16 class C 17 { 18 B b; 19 }; 20 f()21void f() 22 { 23 C* c = new C(); 24 25 try 26 { 27 delete c; 28 } 29 catch(...) 30 {} 31 } 32 main()33int main() 34 { 35 f(); 36 } 37