blob: ee592bf8e2b263f86afc52a1fa595b5a4d3743af [file] [log] [blame]
// PR c++/71909
// { dg-do compile }
struct S
{
S () try : m (0) {}
catch (...) {}
void foo () try {}
catch (int) {}
catch (...) {}
int m;
};
struct T
{
T () : m (0) {}
catch (...) {} // { dg-error "expected unqualified-id before" }
void foo () {}
catch (int) {} // { dg-error "expected unqualified-id before" }
catch (...) {} // { dg-error "expected unqualified-id before" }
int m;
};