https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119334
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|DUPLICATE |FIXED --- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Rogério de Souza Moraes from comment #0) > Using GCC from trunk the > warning is not raised. I used all levels of optimization and all have > failed. That's because GCC got smarter and stopped warning about copying a pair here. This is a good thing.