This will fix remaining failures on gcc-9 buildbot: http://lab.llvm.org:8011/#/builders/101.
gcc-8 and gcc-9 do not support constexpr destructors nor constexpr allocation.
Fix gcc warnings: -Wconversion, -Wpragmas.
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: gcc-8, gcc-9
+
// <memory>
// template <class Alloc>
//===----------------------------------------------------------------------===//
// UNSUPPORTED: clang-8
+// UNSUPPORTED: gcc-8, gcc-9
// <memory>
//===----------------------------------------------------------------------===//
// UNSUPPORTED: clang-8
+// UNSUPPORTED: gcc-8, gcc-9
// <memory>
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: gcc-8, gcc-9
+
// <memory>
// template <class Alloc>
//===----------------------------------------------------------------------===//
// UNSUPPORTED: clang-8
+// constexpr destructors are only supported starting with gcc 10
+// UNSUPPORTED: gcc-8, gcc-9
// <memory>
//===----------------------------------------------------------------------===//
// UNSUPPORTED: clang-8
+// UNSUPPORTED: gcc-8, gcc-9
// <memory>
// UNSUPPORTED: c++03, c++11, c++14
// constexpr destructors are only supported starting with clang 10
// UNSUPPORTED: clang-5, clang-6, clang-7, clang-8, clang-9
+// constexpr destructors are only supported starting with gcc 10
+// UNSUPPORTED: gcc-8, gcc-9
// <memory>
// UNSUPPORTED: c++03, c++11, c++14
// constexpr destructors are only supported starting with clang 10
// UNSUPPORTED: clang-5, clang-6, clang-7, clang-8, clang-9
+// constexpr destructors are only supported starting with gcc 10
+// UNSUPPORTED: gcc-8, gcc-9
// <memory>
// UNSUPPORTED: c++03, c++11, c++14
// constexpr destructors are only supported starting with clang 10
// UNSUPPORTED: clang-5, clang-6, clang-7, clang-8, clang-9
+// constexpr destructors are only supported starting with gcc 10
+// UNSUPPORTED: gcc-8, gcc-9
// <memory>
// Ignore warnings about volatile in parameters being deprecated.
// We know it is, but we still have to test it.
-#if defined(__GNUC__) && !defined(__clang__)
+#if defined(__GNUC__) && (__GNUC__ >= 10) && !defined(__clang__)
# pragma GCC diagnostic ignored "-Wvolatile"
#endif
char *TempPtr = std::end(Temp);
while (N) {
- *--TempPtr = '0' + char(N % 10);
+ *--TempPtr = char('0' + N % 10);
N /= 10;
}