<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 cyclic struct"
   href="https://bugs.llvm.org/show_bug.cgi?id=40386">40386</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Crash on cyclic struct
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>tools
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </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>normal
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>llc
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>lammich@in.tum.de
          </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=21357" name="attach_21357" title="ll file to trigger bug">attachment 21357</a> <a href="attachment.cgi?id=21357&action=edit" title="ll file to trigger bug">[details]</a></span>
ll file to trigger bug

llc core-dumps when a cyclic struct is used. Expectation would be to get a
well-defined error message. 

Reproduction of bug:

<span class="quote">> llc -O0 cyclic_type.ll </span >
[...]
Stack dump:
0.      Program arguments: llc -O0 cyclic_type.ll 
1.      Running pass 'Function Pass Manager' on module
'cyclic_type.ll'.
2.      Running pass 'X86 DAG->DAG Instruction Selection' on function '
@f'
Floating point exception (core dumped)</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>