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
We have an internal test that started failing recently with an assertion failure which I bisected back to commit fa24213.
Consider the following code:
int a[]{};
constint b = sizeof(0);
structc {
int d;
} e;
structf {
f(c *g) : h(g) {}
c *h;
};
structj {
c *k;
c *l;
c *m(int g) { return k + g; }
voidn(int g) {
c *o = (c *)operatornew(sizeof(c) * g);
k = o;
l = o + g;
}
};
voidp(f g, f q, f r) {
for (; g.h != q.h; ++r.h, ++g.h)
*r.h = *g.h;
}
voids(f g, f q, f r) { p(g, q, r); }
intmain() {
j c;
c.n(b);
for (int i = 0; i < b; ++i)
c.m(i)->d = a[i];
s(c.k + 2, c.l, &e);
}
When compiled with optimizations and a compiler that does not include fa24213, the compilation passes:
We have an internal test that started failing recently with an assertion failure which I bisected back to commit fa24213.
Consider the following code:
When compiled with optimizations and a compiler that does not include fa24213, the compilation passes:
But if we attempt to compile this with a compiler that includes fa24213, we hit an assertion failure:
The text was updated successfully, but these errors were encountered: