These two patches (posting as a "partial series" to avoid too much duplication) comprise bug fixes for map clause expansion and a new version of the patch to support OpenMP 5.0+ "declare mapper" directives for C++. Hopefully previous review comments for the latter have been adequately addressed.
These patches depend on various other patches that are not yet committed, as described in the following emails. (I may post the whole series again after revising bits that already have review comments, if that'd be helpful.) Tested (with dependent patches) with offloading to NVPTX, and bootstrapped. Julian Brown (~2): OpenMP/OpenACC: Refine condition for when map clause expansion happens [...] OpenMP: C++ "declare mapper" support -- 2.29.2