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

--- Comment #1 from Jeremy R. <llvm at rifkin dot dev> ---
This ICEs on trunk without [[gnu::packed]]:


struct a {
  int b;
  long c;
  long d;
  bool f;
};
struct g {
  int b;
  long c;
  long d;
  bool : 1;
} h;
struct l {
  union i {
    a j;
    g k;
    i(g m) : k(m) {}
  } data;
};
main() {
  l e{g()};
  h = e.data.k;
}

https://godbolt.org/z/4zx3eh53z

Reply via email to