I recently found a triplet of related bugs in the OpenCL compiler, I have posted here.
Steps to reproduce:
1. step
Is there an ETA on 2.6?