1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
// PR c++/33984 // { dg-do compile } struct S { unsigned int bar : 3; } s; int foo (unsigned int &); int foo (double); int main () { return foo (s.bar); // { dg-error "cannot bind bitfield" } }