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

Jonathan Wakely via Gcc-cvs <[email protected]>
Newsgroups gmane.comp.gcc.cvs
Message-ID <20260817204243.416B04BA79BB__29259.5308319264$1786999369$gmane$org@sourceware.org>
https://gcc.gnu.org/g:f2bfefe0f67d0d5f06f69812e5419637f117d4b6

commit r16-9544-gf2bfefe0f67d0d5f06f69812e5419637f117d4b6
Author: Jonathan Wakely <[email protected]>
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 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.