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 2013/5/4 Richard Smith <[email protected]> > On Thu, May 2, 2013 at 3:54 PM, jingu kang <[email protected]> wrote: > >> Hi all, >> >> 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. >> > > 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? >
_______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
