blob: 2bb05834d9e0cdce75f15379896b74899d2ab8c7 [file] [log] [blame]
// PR c++/85363
// { dg-do run { target c++11 } }
int
init (int f)
{
throw f;
}
struct X {
X () : n {init (42)} {}
int n;
};
struct P {
struct R {
struct Q {
X x = {};
} q;
} r;
};
int
main ()
{
try {
P p {};
}
catch (int n) {
return 0;
}
return 1;
}