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

--- Comment #4 from sandra at gcc dot gnu.org ---
Hmmm.  Look also at item 2 at the bottom of page 283, that says that construct
selectors for a variant function are added to its enclosing OpenMP context.  I
thought this was the reason for the restriction; if you've got different
construct contexts, which one do you use to resolve metadirectives or calls to
other variant functions in its body?  I guess that if you want that to work
you'd have to clone the variant function for each base function it's used with.

This probably all ties in with PR 115076, the issue about the current "declare
variant" implementation using global state instead of following the usual
scoping rules.

Reply via email to