-
Notifications
You must be signed in to change notification settings - Fork 111
Corrade with BUILD_TESTS=ON compilation error: call to non-‘constexpr’ function #136
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
Comments
And with clang++:
another constexpr-related error:
|
Heh... unpossible. This has worked for ages on all compilers back to Clang 3.8, GCC 4.8 and MSVC 2015. Both the GCC and the Clang error is about the same thing, a lambda that gets called if an expression fails. Which is a valid technique explained in this post from 2017. I don't know where the GCC error originates from, but I suspect it would be from AssertDisabledTest.cpp as well, since that's where this macro is mainly tested? Like with #135, I have a suspicion there's something seriously broken with the toolchain you use 😅 |
The compilation error is reproducible in a clean Docker environment (
|
Wait, I'm stupid. Sorry, realized the actual reason just now. Yes, it fails even for me. The key was that TL;DR: if you build with |
Should be fixed with 1fea951, sorry again :) |
Hi!
fails with:
This is with g++ version:
g++ (Ubuntu 11.2.0-19ubuntu1) 11.2.0
on Corrade branch
master
git #ba75f71
, no local change.Note: the build finishes correctly without BUILD_TESTS=ON.
The text was updated successfully, but these errors were encountered: