[LLVMbugs] [Bug 6895] New: Vector literal/casting confusion.
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Apr 22 12:56:29 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=6895
Summary: Vector literal/casting confusion.
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
I've run into a problem with vector literal/casting confusion:
vector float v = (vector float)((vector unsigned int)(0x49800000));
vecinit1.cpp:1:33: error: cannot initialize a vector element of type 'float'
with an lvalue of type '__vector unsigned int'
vector float v = (vector float)((vector unsigned int)(0x49800000));
It appears to be treating the outer paren expression as a vector literal
instead of a cast.
--
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