From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8750A3858D39; Sat, 8 Jul 2023 08:16:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8750A3858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1688804164; bh=CZNY5mwqW+m8cHoezbeMS1/SywJvAmy6SnfEfXZEG0Y=; h=From:To:Subject:Date:From; b=u+Vfz3EBqRy087oeO2zOkbjj6/JnPW12cbd1X3XZwocT49lOCTrPGdyakqNMKjZ2F D8FQMY9tROJkq2TzJN92QW/L3T9JaJBcwj2ioKAS/J7kG3kUijVcnZnaLPzZ2cgYvD EyjNEKPpFPgtakyMVqaT7gjsTT9Z0ygPxyxxJFek= From: "gennaro.prota+gccbugzilla at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/110596] New: Documentation: typo in the docs for -Wnrvo Date: Sat, 08 Jul 2023 08:16:04 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gennaro.prota+gccbugzilla at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D110596 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, , but I'm afraid t= his 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 f() { std::vector 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".=