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

    <tr>
        <th>Summary</th>
        <td>
            [flang] Extension: support BOZ literals in additional contexts
        </td>
    </tr>

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

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

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

<pre>
    gfortran provides an extension to allow BOZ literals outside DATA statements or INT/REAL/CMPLX intrinsics (under the -fallow-invalid-boz flag) . OpenRadioss uses this extension to allow BOZ literals in assignments, for example:
```
program test
  integer :: x
  x = B'1101'
  print *, x
end program
```
This currently prints the error: `not yet implemented: BOZ`

We should consider allowing this only under an additional flag (as gfortran does), and providing a better error in the case where it isn't allowed.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyEU09vqzgQ_zTmMkoEhkA4cEiaRlqpu11VkXbVm4kH8MqxkWdIk_30T4a0PbwnPQmB8J_fv5lRRKZ3iI3Y7MXmkKiJBx-ag7oafQpTe09ar-9N3_nAQTkYg78ajQTKAd4YHRnvgD0oa_0H7F_fwRrGoCyBn5iMRjjsTjsgVowXdEzgA_zx10nI49vz7kXI49Off7_8C8ZxMI7MmUDI7eQ0BuABYdXN0CvjrsoavWr9_9BZ1QtZwxpeR3RvShtPBBMhAQ-GfqvMOFiMz4KEfILOB8CbuowWRb4T6UGkO1Gmj2f-HYPvg7oAI_GyAlE09hgg3sl3cPtcv4HID7AXssqyNBOy-twYg3EMQu4i6eM4Og0P8F8Sn6Kl8xQCOrb3BYLmbDAEHyKxKFPnGe7IYKKH6At13Nm_vn8BLe9_EGjwk9Vw9i4WKCwRGdcv6Xln77AUQDlQWhs23ik7xx6Lowi-GkJ7JCHraEctPq5GRygFLTJjWETGyKPisyKEjwEDgmEw5ISseOFHvU50k-s6r1WCTValdVVUaV4mQ7NF1KizvNBVXW5Lneqq67K8lluFqt2UiWlkKos0T8usKvJNue5azNqy2-ZYtGVdZKJI8aKMXVt7vax96BNDNGGzLWS6Taxq0dI8BFJ2VrleSBnnITTx_KqdehJFag0xfSOwYTtPznJjc4Dnz8aL0dM0jj7wz633nejZO8YbUzIF2wzMI8VOkkchj73hYWrXZ38R8hgpH5_VGPx_eGYhj7MDEvI4m_gRAAD__znuPNo">