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

    <tr>
        <th>Summary</th>
        <td>
            Clang does not implement CWG defect report 2267
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang:frontend,
            accepts-invalid,
            confirmed
      </td>
    </tr>

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

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

<pre>
    Given the following example from [dcl.list.init p3.10](https://eel.is/c++draft/dcl.init.list#3.10):

```cpp
struct A { } a;
struct B { explicit B(const A&); };
const B& b2{a}; // error: cannot copy-list-initialize B temporary from A
```

Which came in via CWG [DR 2267](https://cplusplus.github.io/CWG/issues/2267.html) clang does not diagnose this: https://godbolt.org/z/Ech53W55E
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxsUkuvqzgM_jVmYxVRp4R2waK0l7OfTddpMJCZkKAk7dxzf_0odGbOQ1fiIdn67O9hFaOZHHMLdQf1tVCPNPvQxlmN5q_i7of39s082WGaGUdvrf_buAn5p1pWyzgGvyDU3aBtaU1MpXEm4SrKfQX1Feg4p7RGEGegHqhntqWJQL0G6oC6IagxAfUZnpHbDCCx4emUcdUVqv--sno9el1flZjCQyc8IzQdQnNFBaL70uq2Fv9crdEmYQd01N7FhGcgua3YgP_DXs0OSOKdoOnUq4kv_sgh-ADijFo55xNqv77vMuldpm-UNb8YO0y8rD6o8P4y6Dv_z6Jus9EzarUwGodPo_Bye8uWXv9AItn8zka92kfMbzmZND_upfFA_eX2BtSbGB-cLc7gck6LBTqhtspNOHiOmGkPRk3OR8Y0mzwWv86f_HD3NpU-TED9L6D-h55rcavrH8XQiuEkTqrgdi-PDZ32B3Es5rZSh6YZSTdC1nLPkqtaynp_rE9j0wzNWJiWKhKVpIqqStTH8j7Uw4Ekk6holCcBh4oXZWxp7XPJu4tNSyvFYS8Lq-5s43amRJscEOcxeJfYDUAEdAEipTWvKe6MeyprPurau9GEhbdKfS1Cm5fs7o8pwqHKAcaPtckky-3lq2Um3_vCLm35DDyyThh49SFtORWPYNtvNr7C0X4B6vP0f3-7Nfg_WafPaW0i_wkAAP__e6IUUQ">