vhscampos added a comment. For reference, another small reproducer of the crash, but with a different stack trace than the first example posted here:
// Must compile with -std=c++03 to crash #include <algorithm> int main(int, char**) { int i[3] = {1, 2, 3}; int j[3] = {4, 5, 6}; std::swap(i, j); return 0; } Compile with -std=c++03 to reproduce the assertion failure. We found it by running the libcxx tests. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D111283/new/ https://reviews.llvm.org/D111283 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits