[LLVMbugs] [Bug 9836] New: Strange "read-only variable is not assignable" error with restrict

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue May 3 23:16:21 PDT 2011


http://llvm.org/bugs/show_bug.cgi?id=9836

           Summary: Strange "read-only variable is not assignable" error
                    with restrict
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: sharparrow1 at yahoo.com
                CC: llvmbugs at cs.uiuc.edu


Testcase:
void a(int alpha[restrict]) { alpha = 0;}

Output:
<stdin>:1:37: error: read-only variable is not assignable
void a(int alpha[restrict]) { alpha = 0;}
                              ~~~~~ ^

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list