[gcc r16-8174] libstdc++: Export std::is_{reflection, consteval_only}{, _v} in std.cc [PR120775]
Jakub Jelinek
jakub@gcc.gnu.org
Thu Mar 19 15:11:07 GMT 2026
https://gcc.gnu.org/g:b632b36f74299bd933856e8a9992773f6345c095
commit r16-8174-gb632b36f74299bd933856e8a9992773f6345c095
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