1 // PR c++/71909 2 // { dg-do compile } 3 4 struct S 5 { SS6 S () try : m (0) {} catchS7 catch (...) {} fooS8 void foo () try {} catchS9 catch (int) {} catchS10 catch (...) {} 11 int m; 12 }; 13 14 struct T 15 { TT16 T () : m (0) {} catchT17 catch (...) {} // { dg-error "expected unqualified-id before" } fooT18 void foo () {} catchT19 catch (int) {} // { dg-error "expected unqualified-id before" } catchT20 catch (...) {} // { dg-error "expected unqualified-id before" } 21 int m; 22 }; 23