mclow.lists added inline comments.
================ Comment at: test/std/language.support/support.dynamic/ptr.launder/launder.nodiscard.fail.cpp:16 +// UNSUPPORTED: c++98, c++03, c++11, c++14, c++17 +// UNSUPPORTED: clang-3.3, clang-3.4, clang-3.5, clang-3.6, clang-3.7, clang-3.8 + ---------------- EricWF wrote: > Why is this test unsupported with older compilers? The version of > `std::launder` in this patch should work regardless of compiler support for > `__builtin_launder`. > > Although, it's possible the compiler requirements were intended to avoid > older clang versions without `[[nodiscard]]`. However, I don't think > `clang-3.8` supports C++2a, so the condition seems redundant. > We're testing the `[[nodiscard]]` bit here, not the `launder` bit. And that didn't come in until clang 3.9 https://reviews.llvm.org/D40144 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits