You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
P2996R13 has no __cpp_reflection macro. Section 5.3 adds __cpp_impl_reflection to [cpp.predefined] and __cpp_lib_reflection to [version.syn] (also defined in <meta>).
One part that may still be open: nothing in the tree defines __cpp_lib_reflection. With GCC 16.1 that comes from libstdc++'s <meta>, but our own include_c++/experimental/meta.stdh doesn't define it.
Can this issue be closed, or should meta.stdh define __cpp_lib_reflection (and if so, with which value)? If something is still needed, I can take it up, so please assign it to me.
Yes, let's add __cpp_lib_reflection and define it to what ever GCC 16.x defines it to. I'd also use this issue to move meta.stdh to include_c++ (i.e., no longer under experimental/) since this feature is now quasi-standard.
Activity
mohitmishra786 commentedon Oct 10, 2026
@nv-cmeerw @wchilders-nvidia @daveedvdv-nvidia
I was looking at this one, and I think most of it is already covered on
main:__cpp_impl_reflectionas202603L(src/macro.c#L4823-L4827). It was added in 4b04de5 as part of the GCC 16.1<meta>work (Changes entry for EDGcpfe/28999).__cpp_reflectionmacro. Section 5.3 adds__cpp_impl_reflectionto [cpp.predefined] and__cpp_lib_reflectionto [version.syn] (also defined in<meta>).One part that may still be open: nothing in the tree defines
__cpp_lib_reflection. With GCC 16.1 that comes from libstdc++'s<meta>, but our own include_c++/experimental/meta.stdh doesn't define it.Can this issue be closed, or should
meta.stdhdefine__cpp_lib_reflection(and if so, with which value)? If something is still needed, I can take it up, so please assign it to me.daveedvdv-nvidia commentedon Oct 21, 2026
Yes, let's add
__cpp_lib_reflectionand define it to what ever GCC 16.x defines it to. I'd also use this issue to movemeta.stdhtoinclude_c++(i.e., no longer underexperimental/) since this feature is now quasi-standard.Add 32-bit recordings for the cwg tests that include <meta>. [GH edgc…
Define __cpp_lib_reflection only when reflection is enabled. [GH edgc…
Do not fail in edg-pack-cpfe-ce when include_c++/experimental is abse…
Move meta.stdh out of include_c++/experimental and define __cpp_lib_r…
Sync upstream main (ad4cfc4) into multibackend and reconcile build/ho…