From: Jonathan Wakely Date: Fri, 16 Sep 2022 13:27:43 +0000 (+0100) Subject: libstdc++: Do not use nullptr in C++03-compatible code X-Git-Tag: basepoints/gcc-14~4508 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5ad435f2a0d29486c917025dfa239b9b88c35a09;p=thirdparty%2Fgcc.git libstdc++: Do not use nullptr in C++03-compatible code This has to be valid as C++98/C++03. libstdc++-v3/ChangeLog: * include/debug/formatter.h [_GLIBCXX_DEBUG_BACKTRACE] (_Error_formatter): Use 0 as null pointer constant. --- diff --git a/libstdc++-v3/include/debug/formatter.h b/libstdc++-v3/include/debug/formatter.h index b4b72383e222..f120163c6d42 100644 --- a/libstdc++-v3/include/debug/formatter.h +++ b/libstdc++-v3/include/debug/formatter.h @@ -609,8 +609,7 @@ namespace __gnu_debug , _M_function(__function) #if _GLIBCXX_HAVE_STACKTRACE # ifdef _GLIBCXX_DEBUG_BACKTRACE - , _M_backtrace_state( - __glibcxx_backtrace_create_state(nullptr, 0, nullptr, nullptr)) + , _M_backtrace_state(__glibcxx_backtrace_create_state(0, 0, 0, 0)) , _M_backtrace_full(&__glibcxx_backtrace_full) # else , _M_backtrace_state()