<div dir="ltr">Hi Richard,<div><br></div><div style>I appreciate your response. I have overlooked the contents of previous patch. It only allowed  implicit conversion from 0 to event_t with function parameters. I also wait for someone who is <span style="font-family:arial,sans-serif">with more familiar with OpenCL spec and its intention.</span></div>
<div style><span style="font-family:arial,sans-serif"><br></span></div><div style><span style="font-family:arial,sans-serif">Thanks for your response again,</span></div><div style><span style="font-family:arial,sans-serif">JinGu Kang</span></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/5/4 Richard Smith <span dir="ltr"><<a href="mailto:richard@metafoo.co.uk" target="_blank">richard@metafoo.co.uk</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div class="im">On Thu, May 2, 2013 at 3:54 PM, jingu kang <span dir="ltr"><<a href="mailto:jaykang10@gmail.com" target="_blank">jaykang10@gmail.com</a>></span> wrote:<br></div><div class="gmail_extra">
<div class="gmail_quote"><div class="im">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hi all,<div><br></div><div>I have a question. Clang allows implicit type cast of zero to OpenCL event_t type to support OpenCL async_work_group_copy() function. But explicit type cast generates the error. Could someone explain about this why clang prevent explicit type cast of zero to OpenCL event_t type? I think OpenCL spec does not mention about implicit or explicit type cast to event_t type. I have attached the simple patch to support explicit type cast on the assumption that it is needed.</div>

</div></blockquote><div><br></div></div><div>The originally-proposed patch to add event_t was more restrictive, not even allowing implicit conversions from 0 to event_t except for function parameters:</div><div><br>
</div><div><a href="http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20121217/070012.html" target="_blank">http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20121217/070012.html</a><br>
</div><div><br></div><div>... but it looks like the restriction was not completely removed, and still exists for explicit conversions?</div><div><br></div><div>The OpenCL specification is hopeless when it comes to defining the event_t type, so I have no idea what the right behavior is. Perhaps someone with more familiarity with OpenCL can guess what the standard intended?</div>

</div></div></div>
</blockquote></div><br></div>