<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Mapping of global scope deep object fails"
   href="https://bugs.llvm.org/show_bug.cgi?id=50347">50347</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Mapping of global scope deep object fails
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>OpenMP
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Runtime Library
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>jtramm@anl.gov
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=24859" name="attach_24859" title="reproducer">attachment 24859</a> <a href="attachment.cgi?id=24859&action=edit" title="reproducer">[details]</a></span>
reproducer

The code for this bug report is available here: 

<a href="https://github.com/jtramm/omp_target_issues/tree/master/global_test/class_A">https://github.com/jtramm/omp_target_issues/tree/master/global_test/class_A</a>

When attempting to compile this code with clang++ for a V100 target I get the
following error:

clang++ -Wall -fopenmp -fopenmp-targets=nvptx64-nvidia-cuda -Xopenmp-target
-march=sm_70 -g -c main.cpp -o main.o
<unknown>:0: error: expected relocatable expression
error: cannot compile inline asm
1 error generated.

The compiler version is:

$ clang++ --version
clang version 13.0.0 (<a href="https://github.com/llvm/llvm-project.git">https://github.com/llvm/llvm-project.git</a>
c82a0ae70e280c1c40b1af09ef275ddc7ed4254d)</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>