[gcc r13-10469] libstdc++: Fix preprocessor check for bfloat16_t in <numbers> [PR126849]

Jonathan Wakely redi@gcc.gnu.org
Tue Aug 18 20:05:49 GMT 2026


https://gcc.gnu.org/g:7c77b15aa3d76c9ee9c3053a4c651acd5b9f4345

commit r13-10469-g7c77b15aa3d76c9ee9c3053a4c651acd5b9f4345
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Mon Aug 17 14:09:16 2026 +0100

    libstdc++: Fix preprocessor check for bfloat16_t in <numbers> [PR126849]
    
    libstdc++-v3/ChangeLog:
    
            PR libstdc++/126849
            * include/std/numbers: Fix preprocessor check for
            std::bfloat16_t support.
    
    (cherry picked from commit 92bcc711fafc026e0cc2f48b7f3ab23657787a8c)

Diff:
---
 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 d7d9e81e5403..fd203377abaf 100644
--- a/libstdc++-v3/include/std/numbers
+++ b/libstdc++-v3/include/std/numbers
@@ -215,7 +215,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


More information about the Libstdc++-cvs mailing list