diff options
author | Martin Liska <mliska@suse.cz> | 2022-11-13 22:01:20 +0100 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2022-11-14 09:35:07 +0100 |
commit | 1191a412bb17a734c58716237382a8348b057546 (patch) | |
tree | 84d4a071daec1064e0b96e153c3cb7ed38118740 /gcc | |
parent | de133793c274cfd831b17bed50e7375ac4892e4b (diff) | |
download | gcc-1191a412bb17a734c58716237382a8348b057546.zip gcc-1191a412bb17a734c58716237382a8348b057546.tar.gz gcc-1191a412bb17a734c58716237382a8348b057546.tar.bz2 |
Partially revert 7e3ce73849fef8b50efb427ec96f317e88c0e6cf
gcc/ChangeLog:
* doc/gcc/gcc-command-options/options-controlling-c++-dialect.rst: Revert.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/doc/gcc/gcc-command-options/options-controlling-c++-dialect.rst | 12 |
1 files changed, 1 insertions, 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 9bfb1cc..5b05d31 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`. |