Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails at Travis: no type named 'underlying_type' in namespace 'std' #10

Closed
martinmoene opened this issue Sep 26, 2014 · 3 comments

Comments

@martinmoene
Copy link
Owner

After adding # pragma clang diagnostic ignored "-Wunused-comparison" to lest.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 .

@PureAbstract
Copy link

(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)

@martinmoene
Copy link
Owner Author

Thanks for the heads-up Andy (@PureAbstract). Will have a look at it (may take some time though).

@martinmoene
Copy link
Owner Author

Used this travis configuration by @richoux to compile with g++ 4.8.1 and clang 4.3 with libc++.

martinmoene added a commit that referenced this issue May 18, 2015
philipp-classen added a commit to philipp-classen/CppQuickCheck that referenced this issue Jul 15, 2015
The error is: "no type named 'underlying_type' in namespace 'std"

Possible solution: martinmoene/lest#10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants