[committed] libstdc++: Fix preprocessor check for bfloat16_t in <numbers> [PR126849]
Jonathan Wakely
jwakely@redhat.com
Mon Aug 17 20:29:00 GMT 2026
libstdc++-v3/ChangeLog:
PR libstdc++/126849
* include/std/numbers: Fix preprocessor check for
std::bfloat16_t support.
---
Tested x86_64-linux. Pushed to trunk.
Backports to follow.
libstdc++-v3/include/std/numbers | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libstdc++-v3/include/std/numbers b/libstdc++-v3/include/std/numbers
index 65cd9d041478..882b58e71aa8 100644
--- a/libstdc++-v3/include/std/numbers
+++ b/libstdc++-v3/include/std/numbers
@@ -222,7 +222,7 @@ __glibcxx_numbers (_Float64, F64);
__glibcxx_numbers (_Float128, F128);
#endif
-#ifdef __STDCPP_BFLOAT128_T__
+#ifdef __STDCPP_BFLOAT16_T__
__glibcxx_numbers (__gnu_cxx::__bfloat16_t, BF16);
#endif
--
2.55.0
More information about the Libstdc++
mailing list