1 // PR c++/82040
2 // { dg-do compile { target c++11 } }
3 // { dg-options "-Wbool-operation" }
4 
5 template <class c>
decltype(~c{})6 decltype (~c{})
7 call ()
8 {
9   return ~false; // { dg-warning "on an expression of type bool" }
10 }
11 template int call<bool>();
12