public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/ranger] libstdc++: Fix redundant assignment (PR 94629)
@ 2020-06-17 20:32 Aldy Hernandez
  0 siblings, 0 replies; only message in thread
From: Aldy Hernandez @ 2020-06-17 20:32 UTC (permalink / raw)
  To: gcc-cvs, libstdc++-cvs

https://gcc.gnu.org/g:a2c0fa35d0dc8912b0c1a658234221de61e60840

commit a2c0fa35d0dc8912b0c1a658234221de61e60840
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Sun Apr 19 20:54:38 2020 +0100

    libstdc++: Fix redundant assignment (PR 94629)
    
    This appears to be a copy&paste error, which cppcheck diagnoses.
    
            PR other/94629
            * include/debug/formatter.h (_Error_formatter::_Parameter): Fix
            redundant assignment in constructor.

Diff:
---
 libstdc++-v3/ChangeLog                 | 6 ++++++
 libstdc++-v3/include/debug/formatter.h | 1 -
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 40345cc7044..8d5f0a12fd6 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,9 @@
+2020-04-19  Jonathan Wakely  <jwakely@redhat.com>
+
+	PR other/94629
+	* include/debug/formatter.h (_Error_formatter::_Parameter): Fix
+	redundant assignment in constructor.
+
 2020-04-18  Jonathan Wakely  <jwakely@redhat.com>
 
 	* include/std/chrono (duration, time_point): Define operator<=> and
diff --git a/libstdc++-v3/include/debug/formatter.h b/libstdc++-v3/include/debug/formatter.h
index 998f8056601..bb9b3e5653a 100644
--- a/libstdc++-v3/include/debug/formatter.h
+++ b/libstdc++-v3/include/debug/formatter.h
@@ -299,7 +299,6 @@ namespace __gnu_debug
 	  _M_variant._M_iterator._M_name = __name;
 	  _M_variant._M_iterator._M_address = std::__addressof(__it);
 	  _M_variant._M_iterator._M_type = _GLIBCXX_TYPEID(_Iterator);
-	  _M_variant._M_iterator._M_constness =
 	  _M_variant._M_iterator._M_constness =
 	    __it._S_constant() ? __const_iterator : __mutable_iterator;
 	  _M_variant._M_iterator._M_sequence = __it._M_get_sequence();


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-06-17 20:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-17 20:32 [gcc/devel/ranger] libstdc++: Fix redundant assignment (PR 94629) Aldy Hernandez

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).