// { dg-do compile { target c++20 } } // Bug libstdc++/120625 // std::formatter<__disabled> specializations cause errors in user code #include enum X { }; // A concept that cannot be used with incomplete types: template concept is_X = !std::is_empty_v && std::is_same_v; // A valid program-defined specialization: template requires is_X struct std::formatter : std::formatter { }; // Instantiate the program-defined formatter specialization: auto s = sizeof(std::formatter);