<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head></head><body><div style="font-size: 12pt; font-family: Calibri,sans-serif;"><div>Hi,</div><div>What version of clang are you using? And what options are you passing?</div><div><br></div><div>Sam</div><div><br></div><div>Sam Parker</div><div>Research Student</div><div>Electronic Systems Design Group</div><div>School of Electronic, Electrical and Systems Engineering</div><div>Loughborough University</div><br><div id="htc_header">----- Reply message -----<br>From: "Xiuxia" <zhangxiuxia1@gmail.com><br>To: <cfe-dev@cs.uiuc.edu><br>Subject: [cfe-dev] OpenCL : invalid operands to binary expression<br>Date: Sat, Apr 19, 2014 00:43</div></div><br><pre style="word-wrap: break-word; white-space: pre-wrap;">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: <a href="http://clang-developers.42468.n3.nabble.com/OpenCL-invalid-operands-to-binary-expression-tp4038893.html">http://clang-developers.42468.n3.nabble.com/OpenCL-invalid-operands-to-binary-expression-tp4038893.html</a>
Sent from the Clang Developers mailing list archive at Nabble.com.
_______________________________________________
cfe-dev mailing list
cfe-dev@cs.uiuc.edu
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a>
</pre></body></html>