<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 - runtime assert fail with --fopenmp-version=50 due to nonmonotonic default modifier"
   href="https://bugs.llvm.org/show_bug.cgi?id=44024">44024</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>runtime assert fail with --fopenmp-version=50 due to nonmonotonic default modifier
          </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>Clang Compiler Support
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>a.bataev@hotmail.com
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>jdenny.ornl@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I'm working at commit 1ee84e5ab2a4 on Ubuntu 18.04.3.

$ cat test.c
int main() {
  #pragma omp target teams num_teams(2)
  #pragma omp distribute
  for (int i = 0; i < 2; ++i)
    ;
  return 0;
}
$ clang -fopenmp -fopenmp-version=50 test.c
$ ./a.out
 Assertion failure at kmp_sched.cpp(374): __kmpc_for_static_init: unknown
scheduling type.
OMP: Error #13: Assertion failure at kmp_sched.cpp(374).
OMP: Hint Please submit a bug report with this message, compile and run
commands used, and machine configuration info including native compiler and
operating system versions. Faster response will be obtained by including all
program sources. For information on submitting this issue, please see
<a href="https://bugs.llvm.org/">https://bugs.llvm.org/</a>.
Aborted (core dumped)

Reverting 07a3b59279c4 fixes this.</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>