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

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

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

--- Comment #2 from Boris Staletic <boris.staletic at protonmail dot com> ---
Reduced test case:

```
#include <meta>

constexpr auto views =
std::meta::reflect_constant([:std::meta::reflect_constant_string("as"):] + 1);
```

Seems like `reflect_constant()` fails if the argument is derived from a string
that is a result of a splice operator:

https://godbolt.org/z/nP97s7jxh

A workaround is adding an owning, structural string type:
https://godbolt.org/z/EzE68Mo9G

Reply via email to