// PR c++/107179 // { dg-do compile { target c++20 } } template struct bool_constant { static constexpr bool value = B; }; template struct is_implicitly_default_constructible : bool_constant { }; struct X { private: X(); }; struct Y { }; static_assert( !is_implicitly_default_constructible::value ); static_assert( is_implicitly_default_constructible::value );