http://llvm.org/bugs/show_bug.cgi?id=18373
Bug ID: 18373
Summary: OpenCL constant memory: clang issues assertion
Product: new-bugs
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
When I run clang with "-Xclang -cl-std=CL1.2" in debug mode on the following
kernel:
__kernel void foo(__constant int* A) {
A[0] = 5;
}
I get the following assertion:
Assertion failed: (E->isLValue() && E->getType().isConstQualified()), function
isReferenceToNonConstCapture, file
/Users/jketema/gpuverify34/llvm/tools/clang/lib/Sema/SemaExpr.cpp, line 8243.
In release mode an error is issued (which is the proper behaviour).
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs