https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122828

Boris Staletic <boris.staletic at protonmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |boris.staletic at protonmail 
dot c
                   |                            |om

--- Comment #4 from Boris Staletic <boris.staletic at protonmail dot com> ---
Replacing `std::define_static_array(...)` with
`[:std::meta::reflect_constant_array(...):]` makes the example work.

Another thing that also works is casting the return value of
`std::define_static_array(...)` to `const std::span<const std::meta::info>`.

Together, I am pretty sure this is just:

https://github.com/cplusplus/CWG/issues/805

There was also a gcc patch for implementing the fix, which was delayed until
CWG actually adopts the resolution.
https://gcc.gnu.org/pipermail/gcc-patches/2025-November/700762.html

To quote Jakub, the situation with expansion statements is complicated:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123691#c1
  • [Bug c++/122828] [Reflec... boris.staletic at protonmail dot com via Gcc-bugs

Reply via email to