https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119586
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> --- More to the point testcase: void __attribute__((noipa)) foo (long *) {} void __attribute__((noipa)) d() { long e[6][8][5]; for (int b = 0; b < 6; b++) for (int c = 0; c < 8; c++) { e[b][c][0] = 1; e[b][c][1] = 1; e[b][c][4] = 1; } foo (&e[0][0][0]); } int main() { d(); }