[LLVMbugs] [Bug 6846] New: Integer literal to vector cast reports error

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Apr 15 08:55:04 PDT 2010


           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: unassignedbugs at nondot.org
        ReportedBy: John.Thompson.JTSoftware at gmail.com
                CC: llvmbugs at cs.uiuc.edu

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.

More information about the llvm-bugs mailing list