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

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
It seems a copy CTOR or DTOR is required to make it TREE_ADDRESSABLE.  So
adding either

  ~Widget();

or

  Widget(const Widget&);

to the Widget class declaration fixes the testcase.  Are we using the wrong
check or is escaping 'this' for these kind of classes invoking undefined
behavior?

Reply via email to