public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/110596] New: Documentation: typo in the docs for -Wnrvo
@ 2023-07-08 8:16 gennaro.prota+gccbugzilla at gmail dot com
2023-07-08 9:24 ` [Bug c++/110596] " cvs-commit at gcc dot gnu.org
2023-07-08 9:25 ` redi at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: gennaro.prota+gccbugzilla at gmail dot com @ 2023-07-08 8:16 UTC (permalink / raw)
To: gcc-bugs
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".
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-07-08 9:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-08 8:16 [Bug c++/110596] New: Documentation: typo in the docs for -Wnrvo gennaro.prota+gccbugzilla at gmail dot com
2023-07-08 9:24 ` [Bug c++/110596] " cvs-commit at gcc dot gnu.org
2023-07-08 9:25 ` redi at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).