[cfe-dev] Clang gives error for "static_assert" in GCC 4.6 libstdc++ <chrono> header

Ruben Van Boxem vanboxem.ruben at gmail.com
Sat Jun 18 07:40:19 PDT 2011


Clang gives an error for a static_assert in GCC 4.6's <chrono> header
(just build a simple hello world including <thread>):

M:/Development/mingw64/include/c++/4.6.1/chrono:666:7: error:
static_assert expression is not an integral constant expression
      static_assert(system_clock::duration::min()
      ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

Checking the C++ status page I saw that static_assert should work
mostly. Is this a problem in the part that works, or is this error
generated because it doesn't work well yet (in which case, the colors
on the status page are very misleading.

Thanks!

Ruben

PS: please reply-to-all.



More information about the cfe-dev mailing list