1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
// PR c++/30274 // { dg-do link } struct S { bool x : 4; }; S s; template <typename T> void f(T); template <> void f(bool) {} int main() { f(s.x++); // { dg-warning "deprecated" } f(++s.x); // { dg-warning "deprecated" } }