https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98869
Bug ID: 98869
Summary: Allowing mapping this in OpenMP target
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: xw111luoye at gmail dot com
Target Milestone: ---
this restriction seems unnecessary.
/home/yeluo/opt/qmcpack/src/Particle/SoaDistanceTableABOMPTarget.h:63:42:
error: ‘this’ allowed in OpenMP only in ‘declare simd’ clauses
63 | #pragma omp target enter data map(to:this[:1])