https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118694
--- Comment #1 from sandra at gcc dot gnu.org --- I see the spec does, in fact, prohibit metadirectives that expand into dynamic selector code here -- it's at the bottom of page 324 of the OpenMP 6.0 document. So the problem is just the late resolution expansion produced by the gimplifier when some selectors cannot be matched and/or scored yet.