[Bug c++/123752] [reflection] data_member_spec() doesn't accept default-initialized data_member_options
boris.staletic at protonmail dot com
gcc-bugzilla@gcc.gnu.org
Thu Jan 22 14:36:06 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123752
Boris Staletic <boris.staletic at protonmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |boris.staletic at protonmail dot c
| |om
--- Comment #3 from Boris Staletic <boris.staletic at protonmail dot com> ---
> test.cpp:7:3: error: uncaught exception of type 'std::meta::exception'; 'what()': 'neither name nor bit_width specified'
That's expected. It's a later change in the proposal that clang-p2996 fork has
not implemented.
An empty name implies an anonymous bit field. An empty bit_width implies a
non-bit field.
More information about the Gcc-bugs
mailing list