[cfe-users] Compiler error when including condition_variable header

Dmitri Gribenko gribozavr at gmail.com
Tue Feb 4 04:08:19 PST 2014


On Mon, Feb 3, 2014 at 4:51 PM, Marshall Clow <mclow.lists at gmail.com> wrote:
>
> 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

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

Dmitri

-- 
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/



More information about the cfe-users mailing list