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

--- Comment #4 from Antony Polukhin <antoshkka at gmail dot com> ---
Adding members and usage does not make a difference
https://godbolt.org/z/VommHu

struct A {
  A();
  int i;
};
struct B {
  B(A);
  int i;
};

struct composed2 {
  B b_;
  A a_;
  composed2() : b_(a_) {}
};

auto test() {
    return composed2{};
}

Reply via email to