I faced this bug on OpenCL, but it is probably affecting some other tools. As confirmed [here](https://github.com/KhronosGroup/OpenCL-Docs/issues/1423), the following kernel should be working just fine: ``` __kernel void test_barrier(__global int2* a) { const int i = get_global_id(0); a[i].y = i; a[i + 1].x = i; } ``` However, as discussed [here](https://gitlab.freedesktop.org/mesa/mesa/-/issues?show=eyJpaWQiOiIxMzYzMSIsImZ1bGxfcGF0aCI6Im1lc2EvbWVzYSIsImlkIjoxMzYxMDh9), clang is failing.