In <format>, replace __format::__bflt16_t = decltype(0.0bf16) with 
__gnu_cxx::__bfloat16_t.

This keeps the bfloat16 argument path intact while removing a direct bf16 
literal dependency from the header's internal alias.

Signed-off-by: Jakit Liang <[email protected]>
---
 libstdc++-v3/include/std/format | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libstdc++-v3/include/std/format b/libstdc++-v3/include/std/format
index 8d530e883c3..deb9d398844 100644
--- a/libstdc++-v3/include/std/format
+++ b/libstdc++-v3/include/std/format
@@ -1919,7 +1919,7 @@ namespace __format
     };
 
 #ifdef __BFLT16_DIG__
-   using __bflt16_t = decltype(0.0bf16);
+   using __bflt16_t = __gnu_cxx::__bfloat16_t;
 #endif
 
   // Decide how 128-bit floating-point types should be formatted (or not).
-- 
2.47.3

Reply via email to