[cfe-commits] Explicit type cast of zero to OpenCL event_t type

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:

http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20121217/070012.html

... but it looks like the restriction was not completely removed, and still
exists for explicit conversions?

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?

Hi Richard,

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 with more familiar with OpenCL spec and its intention.

Thanks for your response again,
JinGu Kang