Skip to content
This repository was archived by the owner on Mar 21, 2024. It is now read-only.

Commit 43d3f2a

Browse files
authored
Merge pull request #187 from NVIDIA/bugfix/clang12_gcc11_compat
Several fixes for Clang 12 and GCC 11
2 parents de88841 + 5fe64c3 commit 43d3f2a

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

.upstream-tests/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/deduct.pass.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,11 @@ __host__ __device__ void test_primary_template()
9696
cuda::std::tuple t1(T{});
9797
ASSERT_SAME_TYPE(decltype(t1), cuda::std::tuple<T>);
9898

99+
#if defined(__GNUC__) && (__GNUC__ < 11)
99100
const T v{};
100101
cuda::std::tuple t2(T{}, 101l, v);
101102
ASSERT_SAME_TYPE(decltype(t2), cuda::std::tuple<T, long, T>);
103+
#endif
102104
}
103105
// cuda::std::allocator not supported
104106
/*

include/cuda/std/detail/__config

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@
4343
#ifndef _LIBCUDACXX_NO_RTTI
4444
#define _LIBCUDACXX_NO_RTTI
4545
#endif
46+
// Disable the nodebug type
47+
#ifndef _LIBCUDACXX_NODEBUG_TYPE
48+
#define _LIBCUDACXX_NODEBUG_TYPE
49+
#endif
4650
#define _LIBCUDACXX_HAS_NO_INT128
4751
#define _LIBCUDACXX_FREESTANDING
4852
#define _LIBCUDACXX_HAS_NO_THREAD_CONTENTION_TABLE

libcxx/include/__config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1674,7 +1674,7 @@ _LIBCUDACXX_FUNC_VIS extern "C" void __sanitizer_annotate_contiguous_container(
16741674

16751675
#ifndef _LIBCUDACXX_NODEBUG_TYPE
16761676
#if __has_attribute(__nodebug__) && \
1677-
(defined(_LIBCUDACXX_CLANG_VER) && _LIBCUDACXX_CLANG_VER >= 1200)
1677+
(defined(_LIBCUDACXX_CLANG_VER) && _LIBCUDACXX_CLANG_VER >= 1210)
16781678
#define _LIBCUDACXX_NODEBUG_TYPE __attribute__((nodebug))
16791679
#else
16801680
#define _LIBCUDACXX_NODEBUG_TYPE

0 commit comments

Comments
 (0)