Hi all,<div><br></div><div>I'm trying do build libc++ on a debian amd64 with llvm 2.7 and clang 1.1. I use the last svn revision from libc++ repository. But, when I run ./buildit, I just get a failure with the following errors :</div>
<div><br></div><div><div>../include/type_traits:801:38: error: expected expression</div><div>    : public integral_constant<bool, __has_nothrow_constructor(_Tp)> {};</div><div>                                     ^</div>
<div>../include/type_traits:801:70: error: expected class name</div><div>    : public integral_constant<bool, __has_nothrow_constructor(_Tp)> {};</div><div>                                                                     ^</div>
<div>../include/type_traits:830:38: error: expected expression</div><div>    : public integral_constant<bool, __has_nothrow_copy(_Tp)> {};</div><div>                                     ^</div><div>../include/type_traits:830:63: error: expected class name</div>
<div>    : public integral_constant<bool, __has_nothrow_copy(_Tp)> {};</div><div>                                                              ^</div><div>../include/type_traits:864:38: error: expected expression</div>
<div>    : public integral_constant<bool, __has_nothrow_assign(_Tp)> {};</div><div>                                     ^</div><div>../include/type_traits:864:65: error: expected class name</div><div>    : public integral_constant<bool, __has_nothrow_assign(_Tp)> {};</div>
<div>                                                                ^</div><div>../include/type_traits:896:38: error: expected expression</div><div>    : public integral_constant<bool, __has_virtual_destructor(_Tp)> {};</div>
<div>                                     ^</div><div>../include/type_traits:896:69: error: expected class name</div><div>    : public integral_constant<bool, __has_virtual_destructor(_Tp)> {};</div><div>                                                                    ^</div>
<div>In file included from ../src/algorithm.cpp:11:</div><div>In file included from ../include/random:1643:</div><div>In file included from ../include/vector:243:</div><div>../include/__bit_reference:33:5: error: friends can only be classes or functions</div>
<div>    friend typename _C::__self;</div><div>    ^~~~~~~~~~~~~~~~~~~~~~~~~~</div><div>../include/__bit_reference:104:5: error: friends can only be classes or functions</div><div>    friend typename _C::__self;</div><div>
    ^~~~~~~~~~~~~~~~~~~~~~~~~~</div><div>../include/__bit_reference:1167:5: error: friends can only be classes or functions</div><div>    friend typename _C::__self;</div><div>    ^~~~~~~~~~~~~~~~~~~~~~~~~~</div><div>11 diagnostics generated.</div>
</div><div><br></div><div>Any idea ?</div><div><br></div><div>Best regards,</div><div><br></div><div>Jaonary</div><div><br></div>