https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117439

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[11/12/13/14/15] ICE in     |[12/13/14/15 Regression]
                   |encode_tree_to_bitpos       |ICE in
                   |                            |encode_tree_to_bitpos
                 CC|                            |jakub at gcc dot gnu.org
           Priority|P3                          |P2
   Last reconfirmed|                            |2024-11-04
   Target Milestone|---                         |12.5
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
template <typename T, unsigned long S>
struct A {
  constexpr T &operator[] (unsigned long i) { return a[i]; }
  T a[S];
};
template <int W, int N = 2>
struct B {
  B () { for (int i = 0; i < N; i++) b[i] = 0; }
  A<unsigned, N> b;
};
struct C {
  B<64> c;
  B<64> d[0x800000];
  C () {}
};
struct D {
  B<64> e;
  C f;
} d;

Started with -O2 with r12-4240.
With -O2 -ftree-vectorize it started with my r10-4483-g5384a8027098be99e8d226
though.

Reply via email to