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

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Also add this (making ~_Vector_base constexpr): it seems to have some effect
(g++12 crashes with this but not with #c2):

```
// PR c++/117985

struct _Vector_impl {
  constexpr _Vector_impl() {}
};
struct _Vector_base {
  constexpr ~_Vector_base() {}
  _Vector_impl _M_impl;
};
struct vector : private _Vector_base {};
struct string {
  string();
};
struct VEC {
  vector pane{};
};
struct FOO {
  VEC screen[1]{};
  string debug_name;
};

int
main ()
{
  FOO{};
}
```

Reply via email to