blob: 98ef376fef58e0327abb439992f79ca6e2422c7d [file] [log] [blame]
// { dg-do compile { target c++11 } }
template <typename T> bool Foo (T x)
{
return [](T x)
{ return !x; }(x); // { dg-error "no match for 'operator!'" }
}
namespace X
{
struct S {};
}
// not found by adl :)
bool operator! (X::S);
int main ()
{
Foo (X::S{});
}