https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125228

--- Comment #9 from Jonathan Wakely <redi at gcc dot gnu.org> ---
--- a/libstdc++-v3/src/c++17/floating_to_chars.cc
+++ b/libstdc++-v3/src/c++17/floating_to_chars.cc
@@ -26,7 +26,6 @@

 #include <bit>
 #include <cfenv>
-#include <cassert>
 #include <cmath>
 #include <cstdio>
 #include <cstring>
@@ -106,6 +105,7 @@ namespace

   namespace ryu
   {
+#define assert __glibcxx_assert
 #include "ryu/common.h"
 #include "ryu/digit_table.h"
 #include "ryu/d2s_intrinsics.h"


For debug.cc we need to be sure that we aren't going to recurse into the debug
mode code when we use our own assertion inside the debug mode code. It should
be OK, because __glibcxx_assert doesn't use the full debug mode machinery, even
when _GLIBCXX_DEBUG is defined. So I think your changes to debug.cc are OK.

Reply via email to