[cfe-users] Compiler error when including condition_variable header

Marshall Clow mclow.lists at gmail.com
Mon Feb 3 16:51:41 PST 2014


On Feb 1, 2014, at 3:50 PM, Christian Henning <chhenning at gmail.com> wrote:

> On Sat, Feb 1, 2014 at 6:32 PM, Dmitri Gribenko <gribozavr at gmail.com> wrote:
> On Sat, Feb 1, 2014 at 10:38 PM, Christian Henning <chhenning at gmail.com> wrote:
> > I have installed clang 3.5 on debian and by just including the
> > condition_variable header I get the following error:
> >
> > /usr/include/c++/4.7/chrono:540:6: error no matching constructor for
> > initialization of 'duration' ( aka 'std::chrono::duration<long long,
> > std::ratio<1, 1000000> >')
> >
> > Anyone know how to fix that?
> 
> Hi Christian,
> 
> I'm sorry, I don't know how to fix this, but I wanted to point out
> that right now my centos buildbot is failing for exactly the same
> reason.  I did not yet have time to investigate further.
> 
> http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-centos-6.5

Thwacking that error message into Google led me to this StackOverflow post:
	http://stackoverflow.com/questions/15747223/why-does-this-basic-thread-program-fail-with-clang-but-pass-in-g

and then to:
	http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53841
which ends with:
	Fixed for 4.7.3 and 4.8.0

— Marshall

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-users/attachments/20140203/433380ce/attachment.html>


More information about the cfe-users mailing list