// PR c++/95870 // { dg-do compile { target c++11 } } template struct S { S(); int b = []() -> int { enum E {}; return 1; }(); }; struct C : S { C(); }; template S::S() = default; C::C() {}