Issue |
152460
|
Summary |
Unreachable executed when using `opencl_local` attribute in SYCL
|
Labels |
clang:frontend,
crash-on-valid,
SYCL
|
Assignees |
Maetveis
|
Reporter |
Maetveis
|
The following code, when compiled with `clang -fsycl test.cpp`
```cpp
int [[clang::opencl_generic]] *a;
```
makes clang crash with the message:
> Invalid address space
> UNREACHABLE executed at /root/llvm-project/llvm/tools/clang/lib/Sema/SemaType.cpp:6577!
[See it on Compiler Explorer](https://godbolt.org/z/q3no3voz6)
Clang should not crash, it should either accept or reject the input with a proper message.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs