[LLVMbugs] [Bug 15517] New: libstc++ 4.7 condition_variable broken

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Mar 14 17:46:20 PDT 2013


            Bug ID: 15517
           Summary: libstc++ 4.7 condition_variable broken
           Product: clang
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: bigcheesegs at gmail.com
                CC: llvmbugs at cs.uiuc.edu, richard-llvm at metafoo.co.uk
    Classification: Unclassified

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
error: no matching constructor for initialization of 'duration' (aka
'std::chrono::duration<long, std::ratio<1, 1000000> >')
          : __d(__t.time_since_epoch())
            ^   ~~~~~~~~~~~~~~~~~~~~~~
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;
note: candidate constructor not viable: no known conversion from
'duration<[...], ratio<[...], 1000000000>>' to 'duration<[...], ratio<[...],
1000000>>' for 1st argument
        constexpr duration(const duration&) = default;
note: candidate template ignored: couldn't infer template argument ''
          constexpr explicit duration(const _Rep2& __rep)
note: candidate template ignored: couldn't infer template argument ''
          constexpr duration(const duration<_Rep2, _Period2>& __d)
note: candidate constructor not viable: requires 0 arguments, but 1 was
        constexpr duration() : __r() { }
1 error generated.

I expect it not to. You can see the preprocessed source:

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130315/39853f10/attachment.html>

More information about the llvm-bugs mailing list