diff options
| author | Martin Hořeňovský | 2021-06-07 15:22:53 +0200 |
|---|---|---|
| committer | GitHub | 2021-06-07 15:22:53 +0200 |
| commit | 9ac8cad2d16e8f1a21db104672fe1ab26c872819 (patch) | |
| tree | 9548a4ee0e8220712989face45186b3828eafc8f /src | |
| parent | e6da4e10aeee70556f9cea23e71f8eea6151b3d9 (diff) | |
| parent | c71f42cc2959de3de921fffb47d9ccd77e3e2350 (diff) | |
| download | catch3-9ac8cad2d16e8f1a21db104672fe1ab26c872819.tar.gz | |
Merge pull request #2244 from jbadwaik/devel
Disable CATCH_INTERNAL_IGNORE_BUT_WARN for NVHPC Compilers
Diffstat (limited to 'src')
| -rw-r--r-- | src/catch2/internal/catch_compiler_capabilities.hpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/catch2/internal/catch_compiler_capabilities.hpp b/src/catch2/internal/catch_compiler_capabilities.hpp index 956fd13f..0684050b 100644 --- a/src/catch2/internal/catch_compiler_capabilities.hpp +++ b/src/catch2/internal/catch_compiler_capabilities.hpp @@ -71,8 +71,13 @@ // REQUIRE(std::string("12") + "34" == "1234") // ``` // +// Similarly, NVHPC's implementation of `__builtin_constant_p` has a bug which +// results in calls to the immediately evaluated lambda expressions to be +// reported as unevaluated lambdas. +// https://developer.nvidia.com/nvidia_bug/3321845. +// // Therefore, `CATCH_INTERNAL_IGNORE_BUT_WARN` is not implemented. -# if !defined(__ibmxl__) && !defined(__CUDACC__) +# if !defined(__ibmxl__) && !defined(__CUDACC__) && !defined( __NVCOMPILER ) # define CATCH_INTERNAL_IGNORE_BUT_WARN(...) (void)__builtin_constant_p(__VA_ARGS__) /* NOLINT(cppcoreguidelines-pro-type-vararg, hicpp-vararg) */ # endif |