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

    <tr>
        <th>Summary</th>
        <td>
            Clang rejects P0388R4/"Ranking of reference initialization conversions"
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            c++20,
            clang:frontend,
            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)

```
int f1(const int(&)[]) { return 1; }
int f1(const int(&)[1]) { return 2; }

int main ()
{
    const int arr[1] = { 42 };
    return f1(arr) != 2;
}
```
Clang considers call to f1 ambiguous when it should not.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyMks2OozoQhZ-m2JSCcGHALFiERNztVb-BAUM87diRbdLT8_Qjk3T3tGYzEuLH1HdOVenIEPRqleqg6qE6Z3KLF-e7Lfxsq2x083v33-mEUYUI5RFXoB6oz-cVaJhuN5JAg_Revh8mZ-91foLiDMXxRRkZ1ZwQqPr_i1KIFw7VGUhcYrwFKI9AA9DwthLLjbavQMMtlXkO1D5Enve6eF77p7YRFwYkJmdDRG0jkACqE7VPANQiND16FTdvkUHZIzTnf6HZ3zh9w79ErlJb3NmPZpv-8YKI-KmO0vunMEJ53pU57YLlH_VPs72zRKQeiCWAPuu-mvi-kJORdt0d9ax8wEkag9HhwlBeR71ubgv4dlEWdcRwcZuZ0bqYZ3NXzm3Zykx1rBa8qeu2FtmlK2rO2KIaUbJWFjTxZpzYwqlt56rmRZXpjgoqi4qIcd6SyPmsGiEFE8sylmyqgBfqKrXJjblfc-fXTIewqa4mUdeZkaMyYc8b0fQIFBVABHRKJ2keKI-LdzYqO3_-8OqHmmI43KXR-2l1znyXLA7jtgbghdEhhi_TqKNR3WM_Txg_opjCRy_Svmq7olvQq0V5ZSeF2uqopdG_ZNTOpsXelQ_a2QBE2eZN9z3Bq46XbcwndwUakvfzcbh5lzyBhn36ADTsC_gdAAD__1yT_Ug">