<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 - Crash on coroutines builtins"
   href="https://bugs.llvm.org/show_bug.cgi?id=33998">33998</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Crash on coroutines builtins
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>Frontend
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>seth.cantrell@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>A source file containing the below sequence of tokens causes clang to crash
when compiling using the flags "-std=c++2a -O0 -fcoroutines-ts". Crash in
Godbolt's compiler explorer: <a href="https://godbolt.org/g/yKHPDH">https://godbolt.org/g/yKHPDH</a>

alignas(16) unsigned char preallocated[1024];

void f() {
    void *builtin_id_return = __builtin_coro_id(16, &preallocated, nullptr,
nullptr);
    void *frame = __builtin_coro_begin(builtin_id_return);
}</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>