[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


http://llvm.org/bugs/show_bug.cgi?id=15517

            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
/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:
http://liveworkspace.org/code/3Lqomd$1

-- 
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