https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113239
--- Comment #8 from Dimitry Andric <dimi...@unified-streaming.com> --- (In reply to Frank Ch. Eigler from comment #7) > Wonder if this similar but different diagnostic is closely related: ... > where the c++ code in question is a straight > > vector<> foo; > vector<> bar; > foo.insert(foo.end(), bar.begin(), bar.end()); I can't reproduce the warning here with a vector<int> example, the function is entirely optimized away too. But even if I return the result, e.g.: std::vector<int> f(std::vector<int> bar) { std::vector<int> foo; foo.insert(foo.end(), bar.begin(), bar.end()); return foo; } still no warning. But I think you might need to reduce the mutatee.cxx case. That said, the warning you show is triggered in a different place, and the "between 9 and 9223372036854775800 bytes" is also different.