1 // PR c++/92732
2 // { dg-do compile { target c++17 } }
3 // { dg-options "" }
4 
5 enum class byte : unsigned char { };
6 using uint8_t = unsigned char;
7 
8 struct T
9 {
10   byte a : 2 = byte{0};	// { dg-warning "default member initializers for bit-fields only available with" "" { target c++17_down } }
11   uint8_t b : 2 = 0;	// { dg-warning "default member initializers for bit-fields only available with" "" { target c++17_down } }
12 } t;
13