This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[wwwdocs] Add caveat about std::rotate bug (PR 90920)

Committed to CVS.

Index: htdocs/gcc-9/changes.html
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-9/changes.html,v
retrieving revision 1.71
diff -u -r1.71 changes.html
--- htdocs/gcc-9/changes.html	10 Jul 2019 13:03:55 -0000	1.71
+++ htdocs/gcc-9/changes.html	12 Jul 2019 15:55:47 -0000
@@ -58,6 +58,18 @@
+    A change to the C++ <code>std::rotate</code> algorithm in GCC 9.1.0 can
+    cause ABI incompatibilities with object files compiled with other versions
+    of GCC. If the <code>std::rotate</code> algorithm is called with
+    an empty range then it might cause a divide-by-zero error
+    (as a <code>SIGFPE</code> signal) and crash. The change has been reverted
+    for GCC 9.2.0 and future releases. For more details see
+    <a href="";>Bug 90920</a>.
+    The problem can be avoided by recompiling any objects that might call
+    <code>std::rotate</code> with an empty range, so that the GCC 9.1.0
+    definition of <code>std::rotate</code> is not used.
+  </li>
+  <li>
       The automatic template instantiation at link time (<a href="";><code>-frepo</code></a>) has been deprecated and
     will be removed in a future release.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]