[gcc(refs/users/meissner/heads/work239-submit)] libstdc++: Export std::is_{reflection, consteval_only}{, _v} in std.cc [PR120775]

Michael Meissner meissner@gcc.gnu.org
Thu Mar 19 22:47:32 GMT 2026


https://gcc.gnu.org/g:35598c3f7d6fec21310bf442c43bec35fa5a95c3

commit 35598c3f7d6fec21310bf442c43bec35fa5a95c3
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Thu Mar 19 16:09:10 2026 +0100

    libstdc++: Export std::is_{reflection,consteval_only}{,_v} in std.cc [PR120775]
    
    is_{reflection,consteval_only}{,_v} were added in P120775 r16-6808
    but not exported from std module.
    
    Note, perhaps we'll remove is_consteval_only* again in a week or two,
    who knows what is approved in Croydon.
    
    2026-03-19  Jakub Jelinek  <jakub@redhat.com>
    
            PR c++/120775
            * src/c++23/std.cc.in: Add is_reflection{,_v} and
            is_consteval_only{,_v}.

Diff:
---
 libstdc++-v3/src/c++23/std.cc.in | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/libstdc++-v3/src/c++23/std.cc.in b/libstdc++-v3/src/c++23/std.cc.in
index 362bc5fc52cf..75273ce56c5d 100644
--- a/libstdc++-v3/src/c++23/std.cc.in
+++ b/libstdc++-v3/src/c++23/std.cc.in
@@ -3560,6 +3560,14 @@ export namespace std
   using std::is_implicit_lifetime;
   using std::is_implicit_lifetime_v;
 #endif
+#if __cpp_impl_reflection >= 202506L
+  using std::is_reflection;
+  using std::is_reflection_v;
+#if _GLIBCXX_USE_BUILTIN_TRAIT(__builtin_is_consteval_only)
+  using std::is_consteval_only;
+  using std::is_consteval_only_v;
+#endif
+#endif
 }
 
 // <typeindex>


More information about the Libstdc++-cvs mailing list