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

    <tr>
        <th>Summary</th>
        <td>
            [flang] Unable to parse `CDIR$ LOOP COUNT(10000)`
        </td>
    </tr>

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

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

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

<pre>
    [PROPACK](http://soi.stanford.edu/~rmunk/PROPACK/PROPACK77_v2.1.tar.gz) contains several files with compiler directives that do not compile with flang (built at LLVM commit 748922b31f7f1f48af76efc66a7af0674b1c4c06).

Example:
```
$ ~/p/llvm-project/build/bin/flang-new -c ./complex8/Examples/matvec.F
error: Could not parse ./complex8/Examples/matvec.F
././complex8/Examples/matvec.F:160:17: error: expected end of line
  CDIR$ LOOP COUNT(10000)
                  ^
././complex8/Examples/matvec.F:160:1: in the context: execution part construct
  CDIR$ LOOP COUNT(10000)
...
```

gfortran compiles this file successfully. It's fine not to support the compiler directive, but being able to parse it and ignore it would be helpful.

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJydVN9vmzAQ_mvgxarFr2B44CFLW6lat1TVutfJwAFejY1sk6T763eGpNO6aaqGiHP2ne--u_uOWrcvVbD58PC4f9juPgab6yApBuemIN0GyS2-VgtqHVedNi2Fdvan7MaMs3pG8XLvVWLs2yGhMXXc0P5HkJSk0cpxoSyxcADDJemEBEuOwg2oGyfcGdIKA40TB1S4gTvSaqK0u-hX405y1RPEV89COoJW9_dfP3mbUTjCsqJMkjqNO9bFXVbwjuXQNXnOGe-inGV13GRNlCMkGkTXQbRd15sTHycJPt_1NI_O77pNMoL5YoIT_qQ8jFeT0d8RLG49kNb_C4Xrgu9KwZFcNYTigUcv4VSgeI5iURy5O0BDb1f_YIw2GJzs9CzbJemJGwvvduDt3mGbbmNMCVfmg71GhdOEqUBLQLVEd0QKBatfQnbXd48-_fv9_oHs9k-fv2Dt4wgfrOHF6O0TbG7-D5dHIxR2HxbGwMmt-KCZndDKV8XzQVlnZiz--zFSSv_e2WXtkdfOcHWhmuefsAtHiZ2bBqztZilfKLnDjjOvUbC0yWk0mCa8fgb9lspBsiP17EgNAnnLa_SId9buImE5Vlz0Sptld1zaXwMZQE4Y8Yw5hCrOc5bGWZkVYVulbZmWPHTCSfBzu3AOp5Y8qd8DYJr_rk0ehbORlZ91-zrsPc7ZXFPM5Uz2PzkvrJ2XFm4KhBUOFQfG866MgZVZxrqEI8AIEiihKbOu2YSS1yCtR4tAQ1ElUZLEcRTHGxQKyorazyW0UcnzJE-DLIKRC0l9YKpNH5pqwVDPvUWlFNbZX0puLVYR4OKfz27Qphr48Rk_OlO44K0WsD8BJPCA-g">