<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:mclow.lists@gmail.com" title="Marshall Clow (home) <mclow.lists@gmail.com>"> <span class="fn">Marshall Clow (home)</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - Clang doen't init map with initializer_list"
href="http://llvm.org/bugs/show_bug.cgi?id=15716">bug 15716</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEW
</td>
<td>RESOLVED
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>INVALID
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - Clang doen't init map with initializer_list"
href="http://llvm.org/bugs/show_bug.cgi?id=15716#c3">Comment # 3</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - Clang doen't init map with initializer_list"
href="http://llvm.org/bugs/show_bug.cgi?id=15716">bug 15716</a>
from <span class="vcard"><a class="email" href="mailto:mclow.lists@gmail.com" title="Marshall Clow (home) <mclow.lists@gmail.com>"> <span class="fn">Marshall Clow (home)</span></a>
</span></b>
<pre>This code is ill-formed.
Section 18.5 [dcl.init] in the standard covers declarations, and paragraph 17
talks about the semantics of direct initialization (which is what this is).
It goes through a bunch of circumstances (none of which apply here) and gets
down to bullet #5, which says:
* Otherwise, if the destination type is an array, the program is ill-formed.
A simpler case would be:
std::pair<int, int[2]> p { 0, { 0, 0 }};
which both gcc and clang reject.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>