[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / eh / synth2.C
blob2da814db9d632a24426ccf6c550c2eb602fce221
1 // PR c++/24580
2 // { dg-do run }
4 struct vbase {};
6 struct foo : virtual vbase
8   foo()
9   {
10     throw "exception in foo ctor";
11   }
14 struct bar :  public foo {};
16 int main()
18   try
19     {
20       bar a;
21     }
22   catch ( ... ) { }
23   return 0;