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

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

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

--- Comment #1 from Boris Staletic <boris.staletic at protonmail dot com> ---
The error you got from gcc is very misleading, but the actual problem is that
you can't use string literals like that.

The values of annotations need to be usable as constant template arguments:
https://eel.is/c++draft/dcl.attr.annotation#2
https://eel.is/c++draft/meta.reflection.result#1
https://eel.is/c++draft/temp.param#12

String literals do not qualify. What you can do is:

- Replace `const char*` with some sort of fixed_string type that is structural
- Or use std::define_static_string("literal")

Reply via email to