https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120190
--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-15 branch has been updated by Jonathan Wakely <r...@gcc.gnu.org>: https://gcc.gnu.org/g:53680c1aa92d9f78e8255fbf696c0ed36f160650 commit r15-9708-g53680c1aa92d9f78e8255fbf696c0ed36f160650 Author: Jonathan Wakely <jwak...@redhat.com> Date: Thu May 15 11:01:05 2025 +0100 libstdc++: Fix std::format_kind primary template for Clang [PR120190] Although Clang trunk has been adjusted to handle our std::format_kind definition (because they need to be able to compile the GCC 15.1.0 release), it's probably better to not rely on something that they might start diagnosing again in future. Define the primary template in terms of an immediately invoked function expression, so that we can put a static_assert(false) in the body. libstdc++-v3/ChangeLog: PR libstdc++/120190 * include/std/format (format_kind): Adjust primary template to not depend on itself. * testsuite/std/format/ranges/format_kind_neg.cc: Adjust expected errors. Check more invalid specializations. Reviewed-by: Tomasz KamiÅski <tkami...@redhat.com> Reviewed-by: Daniel Krügler <daniel.krueg...@gmail.com> (cherry picked from commit c65725eccbabf3b9b5965f27fff2d3b9f6c75930)