Bug#666539: clang: Fails when trying to include chrono from C++11

Sylvestre Ledru sylvestre at debian.org
Sun Apr 1 09:34:24 UTC 2012


Hello Mario,

> 
> x4:/tmp% clang++ -std=c++0x -o clang-chrono clang-chrono.cxx
> In file included from clang-chrono.cxx:1:
> /usr/include/c++/4.6/chrono:666:7: error: static_assert expression is not an integral constant expression
>       static_assert(system_clock::duration::min()
>       ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 1 error generated.
> zsh: exit 1     clang++ -std=c++0x -o clang-chrono clang-chrono.cxx
I haven't checked if it is fixed in the current trunk or not but it
looks like it is a known issue:
http://lists.cs.uiuc.edu/pipermail/cfe-dev/2011-June/015641.html


Sylvestre






More information about the Pkg-llvm-team mailing list