Open Quuxplusone opened 4 years ago
Attached crash2-6e6797.cl
(102 bytes, text/x-opencl-src): autogenerated input program
Attached crash2-6e6797.sh
(1827 bytes, application/x-shellscript): autogenerated cc1 invocation script
I should also say that this crashes when using
clang -cc1 -cl-std=CL2.0 crash2.cl -finclude-default-header
as well. The only difference is that Clang doesn't complain, as expected, about
uchar and NULL.
crash2.cl:2:19: error: use of undeclared identifier 'dst_ptr'; did you mean
'cast_ptr'?
global uchar *x = dst_ptr;
^~~~~~~
cast_ptr
crash2.cl:1:15: note: 'cast_ptr' declared here
global float* cast_ptr() { return NULL; }
^
clang: /work/checkouts/upstreams/llvm/llvm-
project/clang/include/clang/AST/Type.h:659: const
clang::ExtQualsTypeCommonBase* clang::QualType::getCommonPtr() const: Assertion
`!isNull() && "Cannot retrieve a NULL type pointer"' failed.
crash2-6e6797.cl
(102 bytes, text/x-opencl-src)crash2-6e6797.sh
(1827 bytes, application/x-shellscript)