Hi,
couldn’t find an OpenCL forum, hopefully this is the right spot.
I got a somewhat longer function, which boils down to
inline float3 foo(void)
{ return((1,2,3)); }
Unexpectedly, this function returns (3,3,3) without any compiler warning. It works correctly if I change it like that:
inline float3 foo(void)
{ return((float3)(1,2,3)); }
Not sure if this is a bug or undefined behavior, hopefully it helps.
This was with the latest OpenCL Linux driver 319.17
Regards,
Elmar