public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Martin Liska <marxin@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r13-3999] Partially revert 7e3ce73849fef8b50efb427ec96f317e88c0e6cf
Date: Mon, 14 Nov 2022 08:39:50 +0000 (GMT)	[thread overview]
Message-ID: <20221114083954.392C13830B19@sourceware.org> (raw)

https://gcc.gnu.org/g:1191a412bb17a734c58716237382a8348b057546

commit r13-3999-g1191a412bb17a734c58716237382a8348b057546
Author: Martin Liska <mliska@suse.cz>
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<const int&, const int&>``, 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`.

                 reply	other threads:[~2022-11-14  8:39 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221114083954.392C13830B19@sourceware.org \
    --to=marxin@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).