-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Build failure with clang 3.8.0 #964
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
Applying this patch
Fixes the above problem, but leads to another failure by causing
|
It looks like FreeBSD patched libc++ and broke this, here: https://svnweb.freebsd.org/base?view=revision&revision=261801 With that change, this code: #include <type_traits>
#include <iostream>
#include <utility>
struct A {
A(const A &) = delete;
};
int main() {
std::cerr << std::is_copy_constructible<std::pair<std::string, A>>::value << "\n";
std::cerr << std::is_copy_constructible<std::pair<A, std::string>>::value << "\n";
std::cerr << std::is_copy_constructible<std::pair<std::string, std::string>>::value << "\n";
std::cerr << std::is_copy_constructible<std::pair<A, A>>::value << "\n";
} produces:
while the other major stls (and libc++ itself, without FreeBSDs bad patch) produce:
FreeBSD seems to be violating the spirit (if not the letter) of the standard (at least until C++17, which does requires such a #965 fixes this (at least in my FreeBSD VM). |
Uh oh!
There was an error while loading. Please reload this page.
Issue description
Build failure with error on clang 3.8.0 (FreeBSD 11.0p11 amd64, Python 2.7.13)
Reproducible example code
See full build log here: https://gist.github.com/rleigh-codelibre/6d6a8cb7888a0cf9c1db365990bdb646
The specific error is when compiling
tests/test_stl_binders.cpp
and is copied here. It looks like this is due to the deleted copy constructor:I've tested with clang 4.0.0 (upgraded setup, with FreeBSD 11.1, amd64, Python 2.7.13). I can't reproduce the issue with this version of clang/llvm.
The text was updated successfully, but these errors were encountered: