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

    <tr>
        <th>Summary</th>
        <td>
            [flang] Many warnings issued from a module included by a use statement after disabling types
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            flang,
            flang:parser
      </td>
    </tr>

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

    <tr>
      <th>Reporter</th>
      <td>
          Renaud-K
      </td>
    </tr>
</table>

<pre>
    If you generate the ieee_arithmetic module while disabling types, there will be warnings. This could be expected and acceptable.
`flang-new -fc1 -fdisable-real-3 -fdisable-real-10 -fdisable-integer-16 ieee_arithmetic.f90 -fsyntax-only`

However, if you then compile a program, with the same compiler using this module, there will be warnings again.
ieee_main.f90
```
use ieee_arithmetic
end
```
`flang-new -fc1 -fdisable-real-3 -fdisable-real-10 -fdisable-integer-16 ieee_main.f90`
This however is no longer acceptable since there is nothing a user can do about them.

```
./ieee_arithmetic.mod:317:1: warning: REAL(KIND=3) is not an enabled type for this target
  real(3),intent(in)::y
 ^^^^^^^^^^^^^^^^^^^^^
./ieee_arithmetic.mod:389:1: warning: INTEGER(KIND=16) is not an enabled type for this target
 integer(16),intent(in)::radix
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
```
 



</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyslMFu4zYQhp-GvgxkUKRlWwcd3Dhug233EOy9GIkjiS1FGiQVx29fUJKT1N1tUewCghLSM5z5v58aDEF3lqhixU9MiD8NjsGQZ0Kw4rjCMfbOV89kcVTZp1Xt1LV6auHqRujIksdIEHsCTUS_o9exHyjqBganRkNw6bUhUDpgbbTtIF7PFJh4SDme4KKNgZrggt5q24U1fOl1gMaNRqV9ej1TE0kBWgXYNHSOWBtaM35k_MC2vDVou8zSBbK2ySFr51KUeUKTyfuNnH_Y0TZSRz7Lt_fdr9syBYarjfiaOWuubMuXmtP7F3ehlwTpAfQMI_ZkoXHDOelFOHvXeRxSwEXHfkIUcKBbiIcxTDyS3JnVt6kAdqjtInpqdUjrtuRvHJZnWo7hH3bMP5BVX034wRzfmrudP3naz8hAB7AOjLMd-Q-WQtC2oQXAFBP7BAhhDOShQQvKAdZujCloWH-0407PmonTvaODU0weZL5j8pAzebjBTf8-Px5-ZWL_6enzkcmjZKJcOgC0QDa1p6abC63zs2URfUdxLgeQmDCxT5lMPCQeNjKx1zZtyAOTh-sSyorH73r-S9--_Iq-p89fHn9-fH6XmG__t8bFZCb2U_I3ZHpU-vVG5Xu1_iuDO8vhb9dheq9UJVUpS1xRle9EsSm3ZbFZ9VWjZCOJ58U-z8sSi0Lm2Dal4oUSgrf5SleCiw0vecH5RsjNupC7zV6KnWiJ71rB2YbTgNqsjXkZ1s53Kx3CSFXOd1LuVgZrMmEZqNOXlaapeHhbycMZfXgbsr5K52T12AW24UaHGN5PjjqaaTjPqcURfkN7fZ8NU2UFrXcD4G3satuYUZGC-jp_QRAiRhrIRsA2kr8fyavRm6qP8RySkeLExKnTsR_rdeMGJk6pneVPdvbuD2piuoSpdmDitAh_qcRfAQAA___P1e40">