// Test of bit-fields. // { dg-do compile { target c++17 } } struct A { long i: 2; } a; template struct same_type; template struct same_type {}; void f() { auto [ x ] = a; same_type{}; same_type{}; long &r = x; // { dg-error "bit" } &x; // { dg-error "bit" } sizeof(x); // { dg-error "10:invalid application of .sizeof. to a bit-field" } }