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

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 62293
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62293&action=edit
gcc16-p3394r4-wip.patch

Untested partial implementation of P3394R4, in particular the one which doesn't
depend on the reflection branch stuff, so parsing of annotations and making
sure it appertains to the right entities etc.
Obviously, std::meta::is_annotation, std::meta::annotations_of and
std::meta::annotations_of_with_type can't be implemented without the reflection
stuff, and only when e.g. std::meta::reflect_constant is implemented.
One thing not implemented in the patch (xfailed in the test) is that the paper
allows annotations also on base-specifiers.  This is novel to GCC, we ignore
all attributes for those (with warning if any non-ignorable), and it is unclear
on what tree to store those.

Reply via email to