[Bug c++/120775] [C++26] P2996R13 - Reflection
boris.staletic at protonmail dot com
gcc-bugzilla@gcc.gnu.org
Mon Nov 24 03:13:04 GMT 2025
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120775
--- Comment #43 from Boris Staletic <boris.staletic at protonmail dot com> ---
Created attachment 62891
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62891&action=edit
splice expression value category
Error from the value category testcase:
```
bar.cpp: In instantiation of 'auto test_address_of_spliced_member(T) [with T =
S]':
required from here
bar.cpp:11:35:
11 | test_address_of_spliced_member(S{});
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
bar.cpp:7:5: error: lvalue required as unary '&' operand
7 | &[:nonstatic_data_members_of(^^T,
std::meta::access_context::current())[0]:];
|
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
More information about the Gcc-bugs
mailing list