Compiler error when including condition_variable header

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?

Thanks,
Christian

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

Dmitri

Good to know that I didn't mess up something!

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

Thanks for the investigation! I've added a note to our docs in r200758.

Dmitri

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

I did make it to the first link but I'm a novice when it comes to linux and
gcc. Now I have to figure out how to update to 4.8 on my debian system.

Anyway, thanks for your answer!

Christian