From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1851) id 392C13830B19; Mon, 14 Nov 2022 08:39:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 392C13830B19 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1668415194; bh=BgaYLUxj4ZwYrr16g3SVR6wCG7LGzAxw0FREx0KvBiE=; h=From:To:Subject:Date:From; b=t73G9ZOJNq44MIR0SibItaBY8bVVoek4WUaO8YdbubvE22SbeU0P1z0kgiJ7ojhJ6 nYML7QVax1kDqAwDtYWLlvJGlNmyT5ixLbCVNDk4gOxtowVDmJfgs9vPyL4Yqq1cAX eVkCm6oFn16z+ohgPj2FlgtvSNhKAa+j8QiYsVnc= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Martin Liska To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-3999] Partially revert 7e3ce73849fef8b50efb427ec96f317e88c0e6cf X-Act-Checkin: gcc X-Git-Author: Martin Liska X-Git-Refname: refs/heads/master X-Git-Oldrev: de133793c274cfd831b17bed50e7375ac4892e4b X-Git-Newrev: 1191a412bb17a734c58716237382a8348b057546 Message-Id: <20221114083954.392C13830B19@sourceware.org> Date: Mon, 14 Nov 2022 08:39:50 +0000 (GMT) List-Id: https://gcc.gnu.org/g:1191a412bb17a734c58716237382a8348b057546 commit r13-3999-g1191a412bb17a734c58716237382a8348b057546 Author: Martin Liska Date: Sun Nov 13 22:01:20 2022 +0100 Partially revert 7e3ce73849fef8b50efb427ec96f317e88c0e6cf gcc/ChangeLog: * doc/gcc/gcc-command-options/options-controlling-c++-dialect.rst: Revert. Diff: --- .../gcc-command-options/options-controlling-c++-dialect.rst | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/gcc/doc/gcc/gcc-command-options/options-controlling-c++-dialect.rst b/gcc/doc/gcc/gcc-command-options/options-controlling-c++-dialect.rst index 9bfb1ccff66..5b05d31aae9 100644 --- a/gcc/doc/gcc/gcc-command-options/options-controlling-c++-dialect.rst +++ b/gcc/doc/gcc/gcc-command-options/options-controlling-c++-dialect.rst @@ -855,16 +855,6 @@ In addition, these warning options have meanings only for C++ programs: const T& foo (const T&) { ... } #pragma GCC diagnostic pop - :option:`-Wdangling-reference` also warns about code like - - .. code-block:: c++ - - auto p = std::minmax(1, 2); - - where ``std::minmax`` returns ``std::pair``, and - both references dangle after the end of the full expression that contains - the call to `std::minmax``. - This warning is enabled by :option:`-Wall`. .. option:: -Wno-dangling-reference @@ -2140,4 +2130,4 @@ In addition, these warning options have meanings only for C++ programs: .. option:: -Wconversion-null - Default setting; overrides :option:`-Wno-conversion-null`. \ No newline at end of file + Default setting; overrides :option:`-Wno-conversion-null`.