https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89336
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Reduced testcase: template <typename T, int N> struct A { T a[N]; constexpr T &operator[] (int x) { return a[x]; } }; constexpr A<int, 16> foo () { A<int, 16> r{}; for (int i = 0; i < 6; ++i) r[i + 8] = r[i] = i; return r; } auto x = foo (); Started to ICE with r217670, before that it has been accepted for a couple of revisions and before that rejected.