[Bug c++/93033] error: incorrect sharing of tree nodes

dcb314 at hotmail dot com gcc-bugzilla@gcc.gnu.org
Fri Dec 20 19:55:00 GMT 2019


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

--- Comment #1 from David Binderman <dcb314 at hotmail dot com> ---
Reduced C++ code seems to be

template <typename a> class b {
public:
  b(a *);
  ~b();
};
class c {
  struct C {
    b<unsigned> d;
    float e;
  };
  c();
};
b<unsigned> f(b<char>);
c::c() { C a[]{f("")}; }


More information about the Gcc-bugs mailing list