[gcc/devel/omp/gcc-9] libstdc++: Fix description of std::ios::trunc (PR 92886)

Tobias Burnus burnus@gcc.gnu.org
Thu Mar 5 14:54:00 GMT 2020


https://gcc.gnu.org/g:7a7ef79651abd20b95d1f76479887d1ea008a62f

commit 7a7ef79651abd20b95d1f76479887d1ea008a62f
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Wed Feb 26 16:31:19 2020 +0000

    libstdc++: Fix description of std::ios::trunc (PR 92886)
    
    Backport from mainline
    2019-12-10  Jonathan Wakely  <jwakely@redhat.com>
    
    	PR libstdc++/92886
    	* include/bits/ios_base.h (std::ios_base::trunc): Fix comment.

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

diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 9f563dd..cf6c952 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,6 +1,12 @@
 2020-02-26  Jonathan Wakely  <jwakely@redhat.com>
 
 	Backport from mainline
+	2019-12-10  Jonathan Wakely  <jwakely@redhat.com>
+
+	PR libstdc++/92886
+	* include/bits/ios_base.h (std::ios_base::trunc): Fix comment.
+
+	Backport from mainline
 	2020-01-28  Jonathan Wakely  <jwakely@redhat.com>
 
 	PR libstdc++/93325
diff --git a/libstdc++-v3/include/bits/ios_base.h b/libstdc++-v3/include/bits/ios_base.h
index 06a3e08..be908b3 100644
--- a/libstdc++-v3/include/bits/ios_base.h
+++ b/libstdc++-v3/include/bits/ios_base.h
@@ -445,7 +445,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
     /// Open for output.  Default for @c ofstream and fstream.
     static const openmode out =		_S_out;
 
-    /// Open for input.  Default for @c ofstream.
+    /// Truncate an existing stream when opening.  Default for @c ofstream.
     static const openmode trunc =	_S_trunc;
 
     // 27.4.2.1.5  Type ios_base::seekdir



More information about the Libstdc++-cvs mailing list