]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Partially revert 7e3ce73849fef8b50efb427ec96f317e88c0e6cf
authorMartin Liska <mliska@suse.cz>
Sun, 13 Nov 2022 21:01:20 +0000 (22:01 +0100)
committerMartin Liska <mliska@suse.cz>
Mon, 14 Nov 2022 08:35:07 +0000 (09:35 +0100)
gcc/ChangeLog:

* doc/gcc/gcc-command-options/options-controlling-c++-dialect.rst: Revert.

gcc/doc/gcc/gcc-command-options/options-controlling-c++-dialect.rst

index 9bfb1ccff66256d91ee966c48c53a003a98b3475..5b05d31aae9c78d56d2921294b2a8dc6ed4586eb 100644 (file)
@@ -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`.