<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Regression in std::vector initialization in clang++ 3.9.x"
href="https://llvm.org/bugs/show_bug.cgi?id=31623">31623</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Regression in std::vector initialization in clang++ 3.9.x
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>-New Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>dane@mapbox.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>clang 3.9.0 and 3.9.1 refuse to compile code that worked in 3.8.1:
```
#include <mapbox/geometry/polygon.hpp>
int main() {
mapbox::geometry::polygon<double> polygon = {{ {{ { 0, 0 }, { 0, 45 }, {
45, 45 }, { 45, 0 } }} }};
}
```
mapbox/geometry/polygon.hpp can be found here:
<a href="https://github.com/mapbox/geometry.hpp/blob/master/include/mapbox/geometry/polygon.hpp">https://github.com/mapbox/geometry.hpp/blob/master/include/mapbox/geometry/polygon.hpp</a>
That errors with: `error: no matching constructor for initialization of 'const
mapbox::geometry::linear_ring<double, std::vector>'.
However this works:
```
Polygon<double> polygon = { {{ { 0, 0 }, { 0, 45 }, { 45, 45 }, { 45, 0 } }} };
```</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>