https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107633
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mpolacek at gcc dot gnu.org --- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- Oh wait, that's a std::set::iterator? Then the warning is wrong. Its operator* returns a reference to something that outlives the iterator itself.