|
Boost : |
Subject: Re: [boost] [1.48.0] Beta 1 release candidates available
From: Artyom Beilis (artyomtnk_at_[hidden])
Date: 2011-10-27 06:52:37
>
> 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?
> ...
> The same error appears several times then
>
Is this the same error all over?
Can you send me the list of such locations or a patch so I'll
be able to commit it to trunk and ask permissions to merge to release
branch.
Artyom
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk