summaryrefslogtreecommitdiff
path: root/gcc48-rh1243366.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-08-01 14:23:42 +0000
committerCoprDistGit <infra@openeuler.org>2024-08-01 14:23:42 +0000
commit82711f6567ef069eebb942e382e2c3fa61fbf538 (patch)
tree22200b7326b32ca672ffb6e4ce6d19a09dc476e5 /gcc48-rh1243366.patch
parent5d624aa0d36abe76a344f0593eae5cf36d083b15 (diff)
automatic import of compat-libgfortran-48openeuler24.03_LTSopeneuler23.09
Diffstat (limited to 'gcc48-rh1243366.patch')
-rw-r--r--gcc48-rh1243366.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/gcc48-rh1243366.patch b/gcc48-rh1243366.patch
new file mode 100644
index 0000000..da137f3
--- /dev/null
+++ b/gcc48-rh1243366.patch
@@ -0,0 +1,35 @@
+2015-07-15 Jonathan Wakely <jwakely@redhat.com>
+
+ PR libstdc++/57394
+ * include/std/streambuf (basic_streambuf(const basic_streambuf&)):
+ Fix initializer for _M_out_end.
+ (operator=(const basic_streambuf&)): Replace stub with actual
+ implementation.
+
+--- libstdc++-v3/include/std/streambuf
++++ libstdc++-v3/include/std/streambuf
+@@ -802,12 +802,22 @@
+ basic_streambuf(const basic_streambuf& __sb)
+ : _M_in_beg(__sb._M_in_beg), _M_in_cur(__sb._M_in_cur),
+ _M_in_end(__sb._M_in_end), _M_out_beg(__sb._M_out_beg),
+- _M_out_cur(__sb._M_out_cur), _M_out_end(__sb._M_out_cur),
++ _M_out_cur(__sb._M_out_cur), _M_out_end(__sb._M_out_end),
+ _M_buf_locale(__sb._M_buf_locale)
+ { }
+
+ basic_streambuf&
+- operator=(const basic_streambuf&) { return *this; };
++ operator=(const basic_streambuf& __sb)
++ {
++ _M_in_beg = __sb._M_in_beg;
++ _M_in_cur = __sb._M_in_cur;
++ _M_in_end = __sb._M_in_end;
++ _M_out_beg = __sb._M_out_beg;
++ _M_out_cur = __sb._M_out_cur;
++ _M_out_end = __sb._M_out_end;
++ _M_buf_locale = __sb._M_buf_locale;
++ return *this;
++ };
+ };
+
+ // Explicit specialization declarations, defined in src/streambuf.cc.