public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-3999] Partially revert 7e3ce73849fef8b50efb427ec96f317e88c0e6cf
@ 2022-11-14 8:39 Martin Liska
0 siblings, 0 replies; only message in thread
From: Martin Liska @ 2022-11-14 8:39 UTC (permalink / raw)
To: gcc-cvs
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`.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-11-14 8:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-14 8:39 [gcc r13-3999] Partially revert 7e3ce73849fef8b50efb427ec96f317e88c0e6cf Martin Liska
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).