Skip to content

[SYCL] compiler issues an error when std::nullptr_t is used as a kernel name type #247

Closed
@kbobrovs

Description

@kbobrovs

The following test fails to compile:
null_name.cpp.txt

$ clang++ -fsycl null_name.cpp -lOpenCL
In file included from :1:
/tmp/null_name-36241f.h:41:31: error: unknown type name 'nullptr_t'; did you mean 'std::nullptr_t'?
template <> struct KernelInfo<nullptr_t> {
^~~~~~~~~
std::nullptr_t
/usr/lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/x86_64-linux-gnu/c++/7.3.0/bits/c++config.h:235:29: note: 'std::nullptr_t' declared here
typedef decltype(nullptr) nullptr_t;
^
1 error generated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions