You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
struct E
{
int i1, i2, i3; // Fails
// int i1, i2; // OK, struct smaller
};
struct S
{
// int Shift; // OK if array is shifted
struct E e[3];
};
kernel void Kernel(global struct S* s)
{
s->e[0] = s->e[1]; // Fails, copying to offset 0 of S
// s->e[1] = s->e[0]; // OK
// s->e[1] = s->e[2]; // OK
// s->e[2] = s->e[1]; // OK
}
https://godbolt.org/z/G6Tz8KqME
Updated after discovering that the problem happens at offset 0 of S.
Likely related to #1177
The text was updated successfully, but these errors were encountered: