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

--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Reduced more:

struct A {
  int i;
};
struct B {
  A a{};
  constexpr B() : a() {}
  constexpr B(const B &rhs) : a(rhs.a) {}
};
struct C {
  B arr[1];
};

constexpr C
fn ()
{
  C c{};
  return c;
}

C c = fn();

Reply via email to