blob: 91e3804cb0bf2ffc19d9f959565d8c80c2bfab86 [file] [log] [blame]
// { dg-do compile { target c++14 } }
struct A { void operator()(int) const {} };
template <class T>
void f()
{
constexpr A a {};
[=](auto b) {
a(b);
}(42);
}
int main()
{
f<int>();
}