[clang] [WIP][clang][SYCL] Check that SYCL kernel parameters are sycl::is_device_copyable (PR #209658)

via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 14 18:50:50 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results

* 55768 tests passed
* 1383 tests skipped
* 1 test failed

## Failed Tests
(click on a test name to see its output)

### Clang
<details>
<summary>Clang.SemaSYCL/sycl-kernel-param-is-device-copyable.cpp</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\24\include -nostdsysteminc -triple x86_64-linux-gnu -std=c++17 -fsyntax-only -fsycl-is-host -verify C:\_work\llvm-project\llvm-project\clang\test\SemaSYCL\sycl-kernel-param-is-device-copyable.cpp
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\24\include' -nostdsysteminc -triple x86_64-linux-gnu -std=c++17 -fsyntax-only -fsycl-is-host -verify 'C:\_work\llvm-project\llvm-project\clang\test\SemaSYCL\sycl-kernel-param-is-device-copyable.cpp'
# .---command stderr------------
# | error: no expected directives found: consider use of 'expected-no-diagnostics'
# | error: 'expected-error' diagnostics seen but not expected: 
# |   File C:\_work\llvm-project\llvm-project\clang\test\SemaSYCL\sycl-kernel-param-is-device-copyable.cpp Line 57: 'NotTriviallyCopyable' is not device copyable (sycl::is_device_copyable) and cannot be used as a kernel parameter
# | error: 'expected-note' diagnostics seen but not expected: 
# |   File C:\_work\llvm-project\llvm-project\clang\test\SemaSYCL\sycl-kernel-param-is-device-copyable.cpp Line 63: in instantiation of function template specialization 'iscopyable1::kernel_single_task<KN<2>, NotTriviallyCopyable>' requested here
# |   File C:\_work\llvm-project\llvm-project\clang\test\SemaSYCL\sycl-kernel-param-is-device-copyable.cpp Line 57: within parameter 't' of type 'NotTriviallyCopyable' declared here
# | 4 errors generated.
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

https://github.com/llvm/llvm-project/pull/209658


More information about the cfe-commits mailing list