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

Gustaw Smolarczyk <wielkiegie at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |wielkiegie at gmail dot com

--- Comment #5 from Gustaw Smolarczyk <wielkiegie at gmail dot com> ---
This warning is triggered just by std::set::swap(std::set&) when optimizing.

https://godbolt.org/z/e84xPMdf6


--------
#include <set>

void foo()
{
  std::set<int> x, y;
  x.swap(y);
}
--------

Reply via email to