https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89733
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> --- On the reduced testcase the warning is completely correct. end_ is indeed uninitialized and then copied over in the Y<X> constructor. As the ~F destructor is not defined, GCC can't optimize away those stores