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]:];
      |    
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```

Reply via email to