Closed martinmoene closed 9 years ago
(dropping by from Catch #334 :-) FWIW, I don't see this issue locally on OS X with either current XCode clang (3.5) , or a close-to-tip build of clang3.6 - my guess would be that travis' clang is using gcc's stdlib implementation, rather than libc++ (you can try adding -nostdinc
to the clang command line to avoid this)
Thanks for the heads-up Andy (@PureAbstract). Will have a look at it (may take some time though).
Used this travis configuration by @richoux to compile with g++ 4.8.1 and clang 4.3 with libc++.
After adding
# pragma clang diagnostic ignored "-Wunused-comparison"
tolest.hpp
I discovered that the Makefile used by Travis CI didn't build test_lest anymore. After fixing that it appeared that clang trips over std::underlying_type<>, whereas on Windows, g++ (GCC) 4.8.1 and Visual C++ 12 (Visual Studio 2013) succeed.Edit 27-Sep-2014: test_lest also compiles successfully with clang version 3.6.0 (trunk 218502) created on Windows 8.1 with MinGW/msys/g++.exe (GCC) 4.8.1.
Without further information, I tend to consider the compilation failure of test_lest as a hiccup of clang at Travis.
Moved from issue #9 .