[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / expr / bitfield12.C
blob3ae88ca191c1dba8ff3e08e0f2be7116382c7796
1 // PR c++/19618
3 struct bset1 {
4   bool bit : sizeof(bool) * __CHAR_BIT__ + 1;  // { dg-warning "exceeds" }
5 };
7 enum E {};
9 struct bset2 {
10   E bit : sizeof(E) * __CHAR_BIT__ + 1;        // { dg-warning "exceeds" }
13 struct bset3 {
14   bool bit : sizeof(bool) * __CHAR_BIT__;
17 struct bset4 {
18   E bit : sizeof(E) * __CHAR_BIT__;