// { dg-do compile { target c++23 } } // C++23 22.14.7.1 [format.range.fmtkind] p1: A program that instantiates // the primary template of format_kind is ill-formed. #include void test() { (void) std::format_kind; // { dg-error "here" } (void) std::format_kind; // { dg-error "here" } (void) std::format_kind; // { dg-error "here" } (void) std::format_kind; // { dg-error "here" } (void) std::format_kind; // { dg-error "here" } (void) std::format_kind; // { dg-error "here" } } // { dg-error "cannot use primary template of 'std::format_kind'" "" { target *-*-* } 0 }