<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 - compile-time core dump building input_head.f from LS3DF"
   href="https://bugs.llvm.org/show_bug.cgi?id=45477">45477</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>compile-time core dump building input_head.f from LS3DF
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>flang
          </td>
        </tr>

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

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </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>Frontend
          </td>
        </tr>

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

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

        <tr>
          <th>CC</th>
          <td>David.Truby@arm.com, llvm-bugs@lists.llvm.org, sscalpone@nvidia.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=23330" name="attach_23330" title="LS3DF source code that causes f18 to core dump.">attachment 23330</a> <a href="attachment.cgi?id=23330&action=edit" title="LS3DF source code that causes f18 to core dump.">[details]</a></span>
LS3DF source code that causes f18 to core dump.

The source file is from a DOE science code:
flang -O2  -Mfixed -c input_head.f

f18 core dumps during the compile phase. When I run gdb on the core, this is
what I see:
Core was generated by
`/scratch/naromero/opt/spack/linux-ubuntu18.04-westmere/gcc-7.4.0/f18-master-lom'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x0000563a09c85880 in
Fortran::semantics::IoChecker::Enter(Fortran::parser::InputItem const&) ()</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>