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

    <tr>
        <th>Summary</th>
        <td>
            [flang] Missing diagnostic on DECIMAL= appear with FORM='UNFORMATTED'
        </td>
    </tr>

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

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

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

<pre>
    Consider the following code:
```
      integer :: ios

      open(1, form='unformatted', decimal='comma', iostat=ios)

      ! test 9: decimal= specifier is not allowed in unformatted i/o
      if( ios == 0 ) then
 ERROR STOP 1
      endif

      end

```

The `decimal=` specifier can only appear on formatted I/O. 
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxMUu2OmzAQfBrzZ3WRWWMCP_hBwyGd1GuqNH0ABy_gytgRdu50b185SZsgJNua_ZgZjQrBTI6oYfIbk12mLnH2a9MpZ8judjO57OT1V7PzLhhNK8SZYPTW-k_jJhi8JiZaxltW8vvPW7h-xkWaaIWEixaMD6nsH-rP5BhWOcMdjH5dmOgYbi8u3VWMpBluE6ZpMIuyN3jwy6LugPEhqshElwZj_TybYQ6RQoQ6LX5MgHCmwYyGVjABnI-gkhDSYBw8rQbDsPcPISPDKu2DxEJ0wIFhnZxwqeb1cNgf4Ndx_xPy_z3ktBmfOZHTt-ezUYy3x5mAlfxJZsmfeA7KgXf2C9T5TGoF7-BB841hv99Aphuha1GrjJp8K2WeF0Uus7kZippvqdZqOCks8rKqkPNTLbTekhRCZKZBjpJXucjropRyI-W2RBSDLKtiFChZwWlRxm6s_Vg2fp0yE8KFmlyKouKZVSey4ZodxNEqNzHRjqt3MclFTIlam9T7crpMgRXcmhDDY1o00V6zd2uWHbybEFKytFGT8yGaIWnuXndv7-33ZP7diE8TZ-j3h_dbMn7_SPf2eHxNr-yy2maO8RxS-LBn2E8mzpfTZvALwz7tvx8v59X_oSEy7K_SAsP-ru6jwb8BAAD__7Vl7gg">