[PATCH] libstdc++: Export std::is_{reflection, consteval_only}{, _v} in std.cc [PR120775]

Jonathan Wakely jwakely@redhat.com
Thu Mar 19 15:04:40 GMT 2026


On Thu, 19 Mar 2026 at 14:18, Jakub Jelinek <jakub@redhat.com> wrote:
>
> Hi!
>
> is_{reflection,consteval_only}{,_v} were added in P120775 r16-6808
> but not exported from std module.
>
> Tested on x86_64-linux, ok for trunk?

OK, thanks

>
> 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}.
>
> --- libstdc++-v3/src/c++23/std.cc.in.jj 2026-03-19 14:41:32.584711108 +0100
> +++ libstdc++-v3/src/c++23/std.cc.in    2026-03-19 14:47:04.295033836 +0100
> @@ -3555,6 +3555,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>
>
>         Jakub
>



More information about the Libstdc++ mailing list