
Artyom Beilis wrote:
There are some build errors on MAC-OS clang in libraries Locale and Math.
clang-darwin.compile.c++ bin.v2/libs/locale/build/clang-darwin-3.0x/release/threading-multi/posix/codecvt.o libs/locale/src/posix/codecvt.cpp:137:30: error: non-constant-expression cannot be narrowed from type 'unsigned char' to 'char' in initializer list char inseq[3] = {seq0 , begin[1], 0}; ^~~~ libs/locale/src/posix/codecvt.cpp:137:30: note: override this message by inserting an explicit cast char inseq[3] = {seq0 , begin[1], 0}; ^~~~ stat)c_cast<char>( 1 error generated.
I don't see this problem with clang-2.8.
Why clang-3 does not allow code like (I don't have clang-3 to check)?
int main() { unsigned char uc = 10; char c[2] = { uc , 1 }; }
Is this really error, why the compiler does not cast?
I don't know. The same error appears with clang-2.9 c++03 or c++11 mode.
... The same error appears several times then
Is this the same error all over?
The locale error occurred just once. It was the Math error that appeared several times. Best, Vicente -- View this message in context: http://boost.2283326.n4.nabble.com/1-48-0-Beta-1-release-candidates-availabl... Sent from the Boost - Dev mailing list archive at Nabble.com.