[cfe-dev] OpenCL : invalid operands to binary expression

Sam Parker S.Parker3 at lboro.ac.uk
Sat Apr 19 01:03:37 PDT 2014


Hi,
What version of clang are you using? And what options are you passing?

Sam

Sam Parker
Research Student
Electronic Systems Design Group
School of Electronic, Electrical and Systems Engineering
Loughborough University

----- Reply message -----
From: "Xiuxia" <zhangxiuxia1 at gmail.com>
To: <cfe-dev at cs.uiuc.edu>
Subject: [cfe-dev] OpenCL :  invalid operands to binary expression
Date: Sat, Apr 19, 2014 00:43

Hi Everybody,
I have a problem when parsing opencl kernel source file.

I have vector type varaibles, such as float3.

float3 x ;
float3 y;
float3 z;
//some inital work

z = x + y;

here compiler will complain : error: invalid operands to binary expression 

Does anybody know how to solve this problem ?



--
View this message in context: http://clang-developers.42468.n3.nabble.com/OpenCL-invalid-operands-to-binary-expression-tp4038893.html
Sent from the Clang Developers mailing list archive at Nabble.com.
_______________________________________________
cfe-dev mailing list
cfe-dev at cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140419/f89d075f/attachment.html>


More information about the cfe-dev mailing list