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

    <tr>
        <th>Summary</th>
        <td>
            [clang] Reference to 'int[1]' cannot bind to 'int[]'
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            c++20,
            rejects-valid
      </td>
    </tr>

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

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

<pre>
    GCC test: `g++.dg/cpp2a/array-conv6.C`
Related: [P0388R4](https://wg21.link/p0388r4)
```cpp
int (&&r1)[] = static_cast<int[]>(42); // Ok.
int (&&r2)[1] = static_cast<int[]>(42); // Error: reference to type 'int[1]' could not bind to an rvalue of type 'int[]'
```
https://godbolt.org/z/bKrT3oW8f
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyckkGPmzAQhX_NcLGCzBgMHDhskqWHHlqtKvVYGdsQdx2MbJM2_fWVoVK3aU-VkBDmvTczn0eEYKZZ6w6qI1TnTKzx4ny3hu9tlQ1O3bt3pxOJOkRgTwQ4nQCPgMdcTYC9XBYUgL3wXtwP0s03np-AU6BnoE8v2oqo1Wasjh8pa5qXEqozYHOJcQnAngB7wP7bhEVuzfwK2C9J5kvAdg9Jadsjl2U_MXMkgA0gB-S-SMqtdwLsTEIU0cgvUqSGT2aO-z9gz4BNiUnMjmQvSz685v-KxD2y-K_MZ--dTyN7PWqvZ6lJdCTeF00A691cbBBqIt1qFZldJIOZVdKJmfibsKsmbnww7Z4HKPvnnzQnpwZnY-58uqIfgP3w3n9i7nMzZqpjqmWtyHRX8KasOeOUZpeuUVINSrdFKeqRl6KumdKa1lxVdGSDzEyHFBmtEAtWMaR5W7OW0lZTqoWocYSS6qswNrf2dk21MxPCqjuODWeZFYO2YVsyRLmvEFJABDwBotdftYzhcBPWqHRanTPfpaTDsE4BSmpNiOF3djTRbjsrrZindFEvb3H_TVrMbzE_QM1Wb7sHiCZe1iGX7grYp7K_XofFu9QrYL_NFwD7bcSfAQAA__9b4_CZ">