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

    <tr>
        <th>Summary</th>
        <td>
            flang sometimes fails to compile gfortran test is_iostat_end_eor_1 on AArch64 buildbots
        </td>
    </tr>

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

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

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

<pre>
    In the following builds, https://github.com/llvm/llvm-test-suite/blob/main/Fortran/gfortran/regression/is_iostat_end_eor_1.f90 fails to compile with this error:
```
error: Semantic errors in /home/tcwg-buildbot/worker/clang-aarch64-sve-vls/test/test-suite/Fortran/gfortran/regression/is_iostat_end_eor_1.f90
/home/tcwg-buildbot/worker/clang-aarch64-sve-vls/test/test-suite/Fortran/gfortran/regression/is_iostat_end_eor_1.f90:7:28: error: No explicit type declared for 'iostat_end'
    if ((.not. is_iostat_end(IOSTAT_END)) .or. is_iostat_end(0)) STOP 1
 ^^^^^^^^^^
/home/tcwg-buildbot/worker/clang-aarch64-sve-vls/test/test-suite/Fortran/gfortran/regression/is_iostat_end_eor_1.f90:8:28: error: No explicit type declared for 'iostat_eor'
    if ((.not. is_iostat_eor(IOSTAT_EOR)) .or. is_iostat_end(0)) STOP 2
```

Selection of examples:
https://lab.llvm.org/buildbot/#/builders/179/builds/6396
https://lab.llvm.org/buildbot/#/builders/179/builds/6262
https://lab.llvm.org/buildbot/#/builders/179/builds/6231
https://lab.llvm.org/buildbot/#/builders/184/builds/4299
https://lab.llvm.org/buildbot/#/builders/184/builds/4283
https://lab.llvm.org/buildbot/#/builders/197/builds/6532
https://lab.llvm.org/buildbot/#/builders/176/builds/2666

The failure happens intermittently across 1 and 2 stage bots, SVE and non-SVE, vector length agnostic and vector length specific.

In each build there is no obvious change that could have caused it. 
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzMVsFu4zYQ_Rr6MrAgjyxZOujgNhGwl01RB3sNKGoksUuRAjlyNn9f0LGdBLsogiaHBQiTHI6fZx7I9yxD0IMlqkX-h8hvVnLh0fn6Rh51d5i1-k7Mq9Z1T_UXCzwS9M4Y96jtAO2iTRcE_gkj8xxEthfYCGwGzePSJspNAhtjjpdpzRR4HRbNJLBpjWsFNpPUVmDTOM9extXQX5eeBk8haBc3OjxoF1jyA9nugZx_2CR9lUIvtQnADpSbZm0IHjWPwKMOQN47H8tKb0S6F0V6Hqft5RAONEnLWj2nB9AWBDajm2KVrB6H9anR1rHA5tH57-QFNspIO6yl9GostutwpPXRhPgFCnyerq3-7-bOhf8u1WT7ncj2WEbWrvR9dUA_ZqOVZuCnmaAjZaSnDnrnQeDuBUrg7rkjAADdg8BSYJlYxwm8-U2B5Ze7w_3-_uH2643ASmAFifM_Z6Xnw8P93V-wOYOL_Pa_xu_GafkBTp1_J6cx8crp3d_v5hR_-XaePw9kSLF2FlwP9ENOs6FwfW5vNcHINokakDg_xMf_wrfA7BIgH_nd7KpLIG6LrCo-GREL_GzEbPNRxHL7GnGLVfXZiGX2UcRq96brPPs4j8VrRCyK4vUNu49-I7VZPMEo55lslGcmP2lmsmyeQCrvQoANSNsBQmA5ELSOT750-HZ7iltn14dvtzF0JMXOgyE78AhysC5E7Y9Zb4_CTEr3WiWvC_pigaQan60v2qEn0AGsA9cetVsCqFHagYBHyaDcYjoY5ZFAySVQB5oTWHV11lVZJVdUb4qyyIsUs-1qrPO0Kru83237Im9VibLKZL6rZNlhn_aIK11jillabDAt891mm2R9J1WZ9htVZLusl2Kb0iS1udK_0iEsVBcZFtnKyJZMOBk9Yh_VTSBGz_f1yZ7bZQhimxodOLwgsGZD9SkdgpuI9UThZ9e96B5EXYRfqB04C_v9SUzhciXCavGmfue_h9m7f0jxSUvDQs_agEX2bwAAAP__GhDORw">