<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 --- - libstc++ 4.7 condition_variable broken"
href="http://llvm.org/bugs/show_bug.cgi?id=15517">15517</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>libstc++ 4.7 condition_variable broken
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</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>bigcheesegs@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu, richard-llvm@metafoo.co.uk
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>The file:
#include <condition_variable>
With libstdc++ 4.7 prints:
Compilation finished with errors:
In file included from source.cpp:1:
In file included from
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/condition_variable:37:
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/chrono:539:6:
error: no matching constructor for initialization of 'duration' (aka
'std::chrono::duration<long, std::ratio<1, 1000000> >')
: __d(__t.time_since_epoch())
^ ~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/condition_variable:110:42:
note: in instantiation of function template specialization
'std::chrono::time_point<std::chrono::system_clock, std::chrono::duration<long,
std::ratio<1, 1000000> > >::time_point<std::chrono::duration<long,
std::ratio<1, 1000000000> > >' requested here
const __clock_t::time_point __s_atime = __s_entry + __delta;
^
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/chrono:233:12:
note: candidate constructor not viable: no known conversion from
'duration<[...], ratio<[...], 1000000000>>' to 'duration<[...], ratio<[...],
1000000>>' for 1st argument
constexpr duration(const duration&) = default;
^
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/chrono:239:23:
note: candidate template ignored: couldn't infer template argument ''
constexpr explicit duration(const _Rep2& __rep)
^
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/chrono:246:14:
note: candidate template ignored: couldn't infer template argument ''
constexpr duration(const duration<_Rep2, _Period2>& __d)
^
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/chrono:231:12:
note: candidate constructor not viable: requires 0 arguments, but 1 was
provided
constexpr duration() : __r() { }
^
1 error generated.
I expect it not to. You can see the preprocessed source:
<a href="http://liveworkspace.org/code/3Lqomd$1">http://liveworkspace.org/code/3Lqomd$1</a></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>