<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 - Clang crashes with computed goto"
   href="https://bugs.llvm.org/show_bug.cgi?id=35827">35827</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Clang crashes with computed goto
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>5.0
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>Windows NT
          </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>-New Bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>info@ct800.net
          </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=19630" name="attach_19630" title="Preprocessed sources and run script">attachment 19630</a> <a href="attachment.cgi?id=19630&action=edit" title="Preprocessed sources and run script">[details]</a></span>
Preprocessed sources and run script

I'm using Win7-x64 and Android NDK 16b. I have generated the standalone chain
for Android Arm64 that uses Clang 5.0.300080 to generate 64 bit code.

When compiling a C file that contains a shellsort using computed goto jump
tables, Clang crashes. The error message suggest to file a bug report.

When I replaced the computed goto shellsort with a version that does not use
computed goto, Clang did not crash and produced a binary, as intended. So it
has something to do with the computed goto.

I tried to isolate this computed goto shellsort into a single file and just
sorting integers, but that did not crash Clang. So the issue is more complex
than just computed goto.

I'm also using the Android NDK 16b standalone toolchain configured for Armv7-a
with 32 bit target with the same application and the computed goto shellsort,
and this works without problems.</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>