If a variable with static storage duration or a function (except lambda for C++) is referenced in the initializer expression list of a variable with static storage duration that appears as a list item in an enter clause on a declare target directive then the name of the referenced variable or function is treated as if it had appeared in an enter clause on a declare target directive.