<div dir="ltr">Hi,<div>C++ sample code like below:</div><div><br></div><div>class AbsBase {<br>public:<br>      virtual int f() = 0;<br>};<br><br>class Derived : public AbsBase {<br>private:<br>        int *arr = new int[100];<br>public:<br>     int f() { return arr[0]; }<br>    void fillarray() {<br>            arr[0] = 1234;<br>        }<br>};<br><br>int main() {<br> AbsBase *absBase = new Derived();<br>#pragma omp target enter data map(to: absBase[0:1])<br>#pragma omp target parallel for map(to: absBase)<br>      for (int i=0;i<10;i++) {<br>           static_cast<Derived*>(absBase)->f();<br> }<br>}<br></div><div><br></div><div>if it is built with the offloading support and executed on POWER8, I observe illegal memory access. Am I programming incorrectly or the possible bug in theĀ </div><div>current trunk of Clang?</div></div>