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

    <tr>
        <th>Summary</th>
        <td>
            No checks for the integer arguments of intrinsic "execute_command_line"
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

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

<pre>
    Section 16.9.73 says that the `exitstat` argument should have a decimal exponent range of at least nine, and the `cmdstat` argument should have a decimal exponent range of at least four. But the following program does not emit any compile time error messages:
```
program bug
  implicit none
  integer(kind = 1) :: exitstatvar
  integer(kind = 1) :: cmdstatvar 
  character(len=256) :: msg
  character(len=:), allocatable :: command
  command='echo hello'
  call execute_command_line(command, exitstat=exitstatvar, cmdstat=cmdstatvar)
end program
```
All other compilers I've tried emit error messages for this program.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJykU91q4zwQfRr5ZqhxRokdX_gibQh8N9_NPkBRpLGtrX6CNE7bt1_sxmkXurCwYDCS5hzNmaOjcrZDIOrE7lHsjoWaeIypu2QmG3pypjhH8979IM02BtjUZVs2ErJ6z8CjYuCRQNQVvVnOrFjUFag0TJ4CQx7j5AyM6kqgwJC2Xjmgt0sM83FSYSCIPSgGRyozBBtI4BOoYFZi7c2_8_ZxSiU8Th_t9tG5-GrDAJcUh6Q8mEgZQmQgbxlUeAcd_cU6AraegFKKCTzlrAbKQh5EdRTVQdTV7VuWK9l5Gj42AKy_OKstQ4iB7puBaaAkcP9igwEhj7AR2MLMKw-wTvKq0l8ibiO6qgQrQo8qKc0LxlEQ8oi7-gvE5-HPpXMNtosPzkWtWJ0d3S-L3qtg7ujbUh4FNqTHCCM5FwU29wrlZm9IT0zPt_Jntxi9X9H4dJct5PHrBPBplSfk8VPo3N_CT8GsLn5rysE5iDxSWh1NGf4T2FwJOFkyH47_bjD0MQGPNq_MZWE6aVrZqoK6TVPtqraWsi7GbtuT2VWVbrfUq9poJff7ettTLRtZ6xYL22GF22qzQdzscFOXErHHvtE7apXZtq3YVuSVdaVzV1_GNBQ254m6pmnbqnDqTC4v4UQM9ArLoUCcs5q6GfNwnoYstpWzmfMnC1t21P0fQY-kX1ZNtL6le5jyHBQbONmQrQaB-L1XWEzJdSPzZQkAngSeBsvjdC519AJP882338MlxZ-kWeBp6TcLPC16fgUAAP__P8dwww">