<html>
<head>
<base href="http://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 --- - tuple constructor accepts less arguments than the tuple has values"
href="http://llvm.org/bugs/show_bug.cgi?id=22362">22362</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>tuple constructor accepts less arguments than the tuple has values
</td>
</tr>
<tr>
<th>Product</th>
<td>libc++
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</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>All Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>mclow.lists@gmail.com
</td>
</tr>
<tr>
<th>Reporter</th>
<td>bugs+llvm+org@sebastianhahn.net
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu, mclow.lists@gmail.com
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>I'm expecting this code to not compile:
std::tuple<unsigned, unsigned> t(1);
but it does (and it behaves as if I had provided 1 and 0). It was suggested to
me that this stems from an implementation of N4064 as detailed in
<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4064.html">http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4064.html</a> - but I'm
not spotting it there, and I find it rather surprising that this should work.
It caused a bug where I emplace()d a tuple into a vector and provided one
argument too few. This should imho be at least a warning if it cannot be an
error.</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>