public inbox for libstdc++@gcc.gnu.org
 help / color / mirror / Atom feed
* [wwwdocs] Document std::istreambuf_iterator change in GCC 10 [PR 92285]
@ 2020-11-04 13:00 Jonathan Wakely
  0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2020-11-04 13:00 UTC (permalink / raw)
  To: gcc-patches, libstdc++

[-- Attachment #1: Type: text/plain, Size: 110 bytes --]

I'm adding this caveat to the gcc-10 release notes, as well as to the
libstdc++ manual.

Pushed to wwwdocs.



[-- Attachment #2: patch.txt --]
[-- Type: text/plain, Size: 1706 bytes --]

commit 6ffde10eba0811d1223eaba7e2a8daefe26276aa
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Wed Nov 4 12:58:19 2020 +0000

    Document std::istreambuf_iterator change in GCC 10 [PR 92285]

diff --git a/htdocs/gcc-10/changes.html b/htdocs/gcc-10/changes.html
index 759e4fd7..d40a633c 100644
--- a/htdocs/gcc-10/changes.html
+++ b/htdocs/gcc-10/changes.html
@@ -65,6 +65,12 @@ You may also want to check out our
     Language (HSAIL) has been deprecated and will likely be removed in
     a future release.
   </li>
+  <li>
+    The type of the <code>std::iterator</code> base class of
+    <code>std::istreambuf_iterator</code> was changed in C++98 mode
+    to be consistent with C++11 and later standards.
+    See the <a href="#iterator_base">libstdc++ notes below</a> for more details.
+  </li>
 </ul>
 
 
@@ -504,6 +510,18 @@ int get_naïve_pi() {
   <li>
     Reduced header dependencies, leading to faster compilation for some code.
   </li>
+  <li>
+    <a id="iterator_base">The <code>std::iterator</code></a> base class of
+    <code>std::istreambuf_iterator</code> was changed in C++98 mode
+    to be consistent with C++11 and later standards.
+    This is expected to have no noticeable effect except in the unlikely case
+    of a class which has potentially overlapping subobjects of type
+    <code>std::istreambuf_iterator&lt;C&gt;</code> and another iterator type
+    with a <code>std::iterator&lt;input_iterator_tag, C, ...&gt;</code>
+    base class. The layout of such a type might change when compiled as C++98.
+    <a href="https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92285">Bug 92285</a>
+    has more details and concrete examples.
+  </li>
 </ul>
 
 <h3 id="d">D</h3>

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

only message in thread, other threads:[~2020-11-04 13:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-04 13:00 [wwwdocs] Document std::istreambuf_iterator change in GCC 10 [PR 92285] Jonathan Wakely

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