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

           Summary: Integer literal to vector cast reports error
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


gcc seems to allow this:

vector unsigned int smask = (vector unsigned int)(vector int)(-1);

But Clang reports:

error: too few elements in vector initialization (expected 4 elements, have 1)

(Using -faltivec.)

-- 
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to