[Bug c++/106276] Missing -Wpessimizing-move warning
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jul 13 20:19:57 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106276
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to David Binderman from comment #1)
> This would help stop many folks, including me, reaching for their
> dictionaries
> to discover what the compiler is warning about.
Don't use a dictionary then:
https://en.cppreference.com/w/cpp/language/copy_elision
https://en.wikipedia.org/wiki/Copy_elision
https://stackoverflow.com/questions/12953127/what-are-copy-elision-and-return-value-optimization
The gcc manual also explains the warning better than looking up individual
words in a dictionary will.
> Eschew prolixity.
This is not prolixity, it's a term of art.
More information about the Gcc-bugs
mailing list