548467 Uncaught exception in helpers.hpp
- Dominant language
- LLVM
- Stars
- 1.5k
- Forks
- 854
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 137
Description
### Describe the bug
```
CID 548467: (#4 of 4): Uncaught exception (UNCAUGHT_EXCEPT)
exn_spec_violation: An exception of type std::bad_variant_access is thrown but the exception specification noexcept doesn't allow it to be thrown. This will result in a call to terminate().
```
https://github.com/intel/llvm/blob/6489caabd2a685ef4db191c32f36c88184de09a1/sycl/source/detail/helpers.hpp#L75-L77
Same for other "noexcept" functions in this file using std::visit().
### To reproduce
1. Include a code snippet that is as short as possible
2. Specify the command which should be used to compile the program
3. Specify the command which should be used to launch the program
4. Indicate what is wrong and what was expected
### Environment
- OS: [e.g Windows/Linux]
- Target device and vendor: [e.g. Intel GPU]
- DPC++ version: [e.g. commit hash or output of `clang++ --version`]
- Dependencies version: [e.g. the output of `sycl-ls --verbose`]
### Additional context
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.