// PR c++/65075 // { dg-do compile { target c++11 } } typedef void (*E) (); template constexpr E bar (bool a) { return a ? []() {} : []() {}; } void foo () { (bar (false)) (); (bar (true)) (); }