I suggest filing a bug. Do not rely on the other thread that you linked. Although they appear similar, there appear to be important differences as well, according to my testing.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| C++20's source_location compilation error when using NVCC 12.1 | 3 | 2405 | January 26, 2024 | |
| Compiling a Catch2 application with nvcc -std=c++20 leads a crash in cudafe++ | 9 | 1036 | July 3, 2026 | |
| Nvc++ compiler internal error with C++20 standard parallelism | 1 | 903 | June 30, 2022 | |
| C++20 user defined literals in nvcc 12.0 bug | 7 | 2061 | October 19, 2023 | |
| Cannot open STL source file "concepts" when compiling stdexec example code using nvc++ | 6 | 850 | January 2, 2024 | |
| NVHPC nvc++ 26.3 compiler crash (assert) | 2 | 91 | June 16, 2026 | |
| CUDACOMPILE : nvcc error : 'cudafe++' died with status 0xC0000409 | 15 | 6427 | June 3, 2024 | |
| Nvcc c++20 std::variant complie failed | 4 | 998 | July 24, 2024 | |
| Cannot compile google test with nvhpc 23.1 and c++ 20 | 11 | 1256 | June 15, 2023 | |
| NVCC silently compiles std::swap to incorrect code (with no error or warning) in certain scenarios | 2 | 175 | February 15, 2025 |