1 // PR c++/31952 2 3 int f0(int bar)4f0 (int bar) // { dg-message "previously" } 5 try 6 { 7 return 0; 8 } catch(...)9catch (...) 10 { 11 int bar = 0; // { dg-error "redeclaration" } 12 return 1; 13 } 14 15 int f1(int bar)16f1 (int bar) 17 try 18 { 19 return 0; 20 } catch(...)21catch (...) 22 { 23 { 24 int bar = 0; // Ok, not outermost block. 25 } 26 return 1; 27 } 28 29 int f2(int bar)30f2 (int bar) 31 { 32 try 33 { 34 return 0; 35 } 36 catch (...) 37 { 38 int bar = 0; // Ok, not a function-try-block. 39 return 1; 40 } 41 } 42