[LLVMbugs] [Bug 18373] New: OpenCL constant memory: clang issues assertion

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jan 3 14:26:27 PST 2014


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: unassignedbugs at nondot.org
          Reporter: jeroen.ketema at yahoo.com
                CC: llvmbugs at cs.uiuc.edu
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140103/07320b47/attachment.html>


More information about the llvm-bugs mailing list