File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,8 @@ class T;
45
45
class U ;
46
46
} // namespace std
47
47
48
- template <typename T> struct Templated_kernel_name ;
48
+ template <typename T>
49
+ struct Templated_kernel_name ;
49
50
50
51
template <typename name, typename Func>
51
52
__attribute__ ((sycl_kernel)) void kernel_single_task(Func kernelFunc) {
@@ -54,10 +55,10 @@ __attribute__((sycl_kernel)) void kernel_single_task(Func kernelFunc) {
54
55
55
56
int main () {
56
57
#ifdef CHECK_ERROR
57
- kernel_single_task<std::nullptr_t >([=]() {}); // expected-error {{kernel name cannot be a type in the "std" namespace}}
58
- kernel_single_task<std::T>([=]() {}); // expected-error {{kernel name cannot be a type in the "std" namespace}}
58
+ kernel_single_task<std::nullptr_t >([=]() {}); // expected-error {{kernel name cannot be a type in the "std" namespace}}
59
+ kernel_single_task<std::T>([=]() {}); // expected-error {{kernel name cannot be a type in the "std" namespace}}
59
60
kernel_single_task<Templated_kernel_name<std::nullptr_t >>([=]() {}); // expected-error {{kernel name cannot be a type in the "std" namespace}}
60
- kernel_single_task<Templated_kernel_name<std::U>>([=]() {}); // expected-error {{kernel name cannot be a type in the "std" namespace}}
61
+ kernel_single_task<Templated_kernel_name<std::U>>([=]() {}); // expected-error {{kernel name cannot be a type in the "std" namespace}}
61
62
#endif
62
63
63
64
// Although in the std namespace, these resolve to builtins such as `int` that are allowed in kernel names
You can’t perform that action at this time.
0 commit comments