[llvm-bugs] [Bug 34022] New: OpenMP 4.5: Mapping the this pointer of a class generates a compiler error

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Aug 1 08:38:52 PDT 2017


https://bugs.llvm.org/show_bug.cgi?id=34022

            Bug ID: 34022
           Summary: OpenMP 4.5: Mapping the this pointer of a class
                    generates a compiler error
           Product: OpenMP
           Version: unspecified
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Clang Compiler Support
          Assignee: unassignedclangbugs at nondot.org
          Reporter: sergiop at udel.edu
                CC: llvm-bugs at lists.llvm.org

Created attachment 18888
  --> https://bugs.llvm.org/attachment.cgi?id=18888&action=edit
Mapping the **this** pointer

Dear LLVM OpenMP 4.5 support.

I'm trying to map the **this** pointer of an class but I'm getting a
compilation error: 

repro.cpp:20:38: error: expected expression containing only member accesses
and/or
      array sections based on named variables
#pragma omp target enter data map(to:this)
                                     ^~~~
repro.cpp:27:41: error: expected expression containing only member accesses
and/or
      array sections based on named variables
#pragma omp target exit data map(delete:this)
                                        ^~~~
2 errors generated.

I'm attaching a reproducible for the error.

# Compile
To compile: clang++ -fopenmp -fopenmp-targets=nvptx64-nvida-cuda repro.cpp

# MACHINE
I tested this in a 64 bit system. 
- clang version 3.8.0 (ibmgithub:/CORAL-LLVM-Compilers/clang.git
6dec6f47d3868e3c8bf6e9e19a217cb2b459d3d8)
(ibmgithub:/CORAL-LLVM-Compilers/llvm.git
b1d578319dbe65eb1e654c6b4e3d05dfcaa087a6)
Target: powerpc64le-unknown-linux-gnu
Thread model: posix
- Red Hat Enterprise Linux Server 7.3 - CentOS release 7
- POWER8NVL ppc64le
- NVIDIA Tesla P100 GPU

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170801/7c885e26/attachment.html>


More information about the llvm-bugs mailing list