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

    <tr>
        <th>Summary</th>
        <td>
            [flang] Missing diagnostic on `SIZE(assumed-size)` without DIM argument.
        </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:
```
subroutine sub(arg)
  class(*) :: arg(*)
  select type(arg)
    type is(real)
      print*, size(arg)
  end select
end
```

`arg` is assumed-size dummy array. It should be diagnosed that the call to intrinsic `SIZE` should require the `DIM` argument.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxcUsGO4yoQ_Bp8aU2E24HEBx_8khcphzm927thg21WGLI0zCj79Ss81s7sSEiIpqrUXV2KyM7emI6Jf5i4ViqnJcTuqrw17nJZjK-GoJ_dJXiy2kRIi4EpOBferZ9hDNqwpme8Z5Lvh_eUhxhyst4A5YHhWcWZYct4DzA6RcTwzLBn2EIhNz1sgL22wcg4MyZIz4f5mw9bDWzRiEa5zzrAI1qfNpELkP31jWm83mUZ743X35r-eBa85GAJFFFejX4pQqDzuj5BxaieB7gnoCVkp2EwoK2afSCjIS0qbfaMyjlIAaxP0XqyIzDJ_7v__29R3pnR_Mw2mg3PJL_eX8uninNejU-HSneNbptWVaarT0cpj1zUolo6Pg28niYcFPJpmFCI01lpRCGVxKPGynbIUXDBT_VJiFocpJQTTqpuRSONalt25GZV1h2ce1sPIc6VJcqmq5tzi7JyajCOtjggTk75mTX9FINPxTLEEpLYFe7LkGdiR-4sJfpUSza5LU4fZHGFV0tUwrJblewIwf_xBM9fnS7LkhzebVpCTnC9v34xJUfXLSk9qKQGbwxvs01LHg5jWBneSgv79fKI4UfZNN626YjhbR_wrcPfAQAA__-Ai-p5">