<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/93734>93734</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang] c++23 no matching function call to 'get' when initializing unordered_map with an initializer list
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
bobby3605
</td>
</tr>
</table>
<pre>
The following reduced test case does not compile with clang++ when using -std=c++23. It does compile with -std=c++20. g++ can compile it with -std=c++23.
`test.cpp`:
```
int main() { std::unordered_map<int, int> test_map = {{0, 0}}; }
```
`compile command`:
```
clang++ -std=c++23 test.cpp
```
`clang++ --version`
```
clang version 17.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
```
I installed clang from the arch linux repository `clang` package.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8U01v4zgM_TX0hYihSP6IDz4kzQbovfdClhlbu7JkSHI_9tcPFKdp2ukMIECw-R7JJ_LJEPRgiVooD1AeM7nE0fm2c133LipWZp3r39unkfDsjHGv2g7oqV8U9RgpRFQyEPaOAloXUblp1obwVccRlZF2AH4AfsDXkSwuIdE3IfYgjmqNcJHjY1wzfGF_g7EcP3IpaW9QHX9EixzYEdgeKpa6zNU8Q8VA7G-_r-fyqW3ESWoLfAe8QagPeEm3B7FfrPM9eeqfJzmDeNA2An_AdIl_Lk-QAgjimHhQH1gKM6iP6YgDpuunolCxDxHKTZO0_V86vH_K71LxpvBPZe7JmxfyQTt7D_itEl5BuK1zlldr5En6gSKIPb7tqueq2MxqY7Rd3jaDXa6Q0ZPscXI9mQScXdBva-jRhiiNof6ofQoBPy3BAz912v7YyCPqD8q6SXj2bsI4EkqvRryURk-pRnT-HW9KK4azVP_Jga5bkPWt6BvRyIzabb2t2baoqyob2zMvGyXrXcVVs-Xnhu2oLrtGlqTOVcnLTLec8YKVvOFM8KLKZX8WVIqu60RdNKqAgtEktcmNeZly54dMh7BQ24haFJmRHZlw8Rbn1zHwZDPfJvymW4YABTM6xPCZIepoLoZcGeURP2dtHU4yqjEZ6bxYFdOUlDQGo0PgdZoQr1e7aaujlkb_n8Bf9nj1jLyDkMfURbZ4044xziFtIj8BPw06jkuXKzcBP6Uer9dm9u5fUhH46SI5AD-tql9a_isAAP__ppdN2w">