* doc/invoke.texi: Document -std=c++17 and -std=gnu++17 and document
[official-gcc.git] / gcc / testsuite / g++.dg / expr / bitfield6.C
blobb417310e2cf8aad5aaafbbbc5211aba55769f1f6
1 // PR c++/30274
3 struct S {
4   bool x : 4;
5 };
7 S s;
9 void f() {
10   ++s.x = false; // { dg-warning "deprecated" "" { target { ! c++17 } } }
11   // { dg-error "forbidden" "" { target c++17 } .-1 }