diff --git a/testing/enum_type_list.cu b/testing/enum_type_list.cu index 05b2605..88535ba 100644 --- a/testing/enum_type_list.cu +++ b/testing/enum_type_list.cu @@ -24,6 +24,11 @@ #include +// If using gcc version < 7, disable some tests to WAR a compiler bug. See NVIDIA/nvbench#39. +#if defined(__GNUC__) && __GNUC__ == 7 +#define USING_GCC_7 +#endif + enum class scoped_enum { val_1, @@ -109,9 +114,11 @@ void test_int() void test_scoped_enum() { +#ifndef USING_GCC_7 ASSERT(( std::is_same_v, nvbench::type_list>>)); +#endif ASSERT(( std::is_same_v, nvbench::type_list>>)); @@ -132,6 +140,7 @@ void test_unscoped_enum() nvbench::type_list, nvbench::enum_type, nvbench::enum_type>>)); +#endif } void test_scoped_enum_type_strings()