// PR c++/95568 // { dg-do compile { target c++20 } } // CTAD with aggregates containing bit-fields. template struct same_type; template struct same_type {}; enum E { e }; enum class F { f }; template struct X { T a : 5; }; template void g() { auto x = X{ 0 }; same_type(); auto x2 = X{ E::e }; same_type(); auto x3 = X{ false }; same_type(); auto x4 = X{ 0u }; same_type(); auto x5 = X{ F::f }; same_type(); } void fn () { g(); }