https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110596
Bug ID: 110596 Summary: Documentation: typo in the docs for -Wnrvo Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gennaro.prota+gccbugzilla at gmail dot com Target Milestone: --- >From the manual (currently, <https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html>, but I'm afraid this is a moving target): -Wnrvo [...] For instance, in the example below the compiler cannot elide copies from both v1 and b2, so it elides neither. std::vector<int> f() { std::vector<int> v1, v2; // ... if (cond) return v1; else return v2; // warning: not eliding copy } Clearly, the text should say "v1 and v2", not "v1 and b2".