<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/57586>57586</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            flang crash
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          ghdpc
      </td>
    </tr>
</table>

<pre>
    I'm new to Fortran and apparently my Fortran is so bad it makes the compiler crash. This is on macOS 11.3.1(20E241). I've attached the source file in question. It's likely related to the declaration of `type(Card)` and the addition of the contained function `name`. I've also attached the crash log from my machine. Note that I had to rename the Fortran file to get GitHub to accept it as an attachment, so it's name "Solitaire.f90.txt" instead of just "Solitaire.f90".
[flang-new.crash.txt](https://github.com/llvm/llvm-project/files/9499781/flang-new.crash.txt)
[Solitaire.f90.txt](https://github.com/llvm/llvm-project/files/9499782/Solitaire.f90.txt)

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJytUstunTAQ_RrYjILAvBcs0qS3zaZdpD9gzABODKb2kPb-fQff3kZVsqlUCcmPOT7nzBl6O5y7h0jUC6z4A8jCyTpycgW5DiC3TTpcyZxhOf-paA_eQi8H0ASLfEYPNCMou2zaoAPlpJ8T-DYzkD-7Mkh9fYQsS_Iki0Qj0o-i4E2bwCH9giCJpJpxCETe7k4hjEwGeoXvO3rSdmUwMdqD0c_IjhwaSccTG14NqIx08kCCHSGqUjpvyGp30g2sxRehpwMrh0FfgRfrK0m9Mtm4rypUGL7KBXl5NWm47b-chk7B2AlGZ5cjI-50ZqIEvlhCxkiCB5hlcMlJMmN4eI0y9MilCQk-afq898dJKoUbHelKD8cogubCg4jE3ZG9vgQR6CIhHq3R7N9hMrZpQj-5Kjg5T8jC3OLT7ukNjs9JlN5H6W1UfhiNXKcb_gOSy_AOjvKew5uJNh_lt5E48Tdpmvc-4UnzwZiX63KzOfuEinVPR0ee17Zo27rJjpt3uHkcV-m35v-HsODdO7H8lo2xy6pKFE2bZk08dPnQ5q2MSZPBLvi9jDbenen-2Yn2fg9WyrpsqnjusM7HrFQ9VuVYqqIWRV1iJUSel2WTKoyN7NH4jtPg5mPdiVSItE2rrMnZYKKyrFdt34tepmIc66hIcZHaJIdwYt0Uuy546PfJc9FoT_61KL3X04p45Zc7zdZ10zxsKg5mu-D0FzCoUZA">