https://gcc.gnu.org/g:3c11355ab9ff2bef2a103de9ac81f6cb45e17591

commit r13-10114-g3c11355ab9ff2bef2a103de9ac81f6cb45e17591
Author: Jonathan Wakely <[email protected]>
Date:   Wed Mar 4 11:58:37 2026 +0000

    libstdc++: Change comment on #endif to match #if condition [PR124363]
    
    I changed the #if in r8-3123-gc6888c62577671 but didn't make the
    corresponding change to the #endif.
    
    This backport also includes the fix for the #endif of the include guard,
    which was changed by r16-6038-g62c126db6b6017 to refer to the correct
    macro.
    
    libstdc++-v3/ChangeLog:
    
            PR libstdc++/124363
            * include/std/string_view: Adjust comment on #endif to match #if
            condition. Likewise for header guard.
    
    (cherry picked from commit 47339c8f8a477464b6fe44992200bd2b840da8f4)

Diff:
---
 libstdc++-v3/include/std/string_view | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libstdc++-v3/include/std/string_view 
b/libstdc++-v3/include/std/string_view
index 0f4b22435335..feb04c75d36e 100644
--- a/libstdc++-v3/include/std/string_view
+++ b/libstdc++-v3/include/std/string_view
@@ -904,6 +904,6 @@ _GLIBCXX_END_NAMESPACE_VERSION
 
 #include <bits/string_view.tcc>
 
-#endif // __cplusplus <= 201402L
+#endif // C++17
 
-#endif // _GLIBCXX_EXPERIMENTAL_STRING_VIEW
+#endif // _GLIBCXX_STRING_VIEW

Reply via email to