From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2181) id 6546338155B2; Fri, 16 Sep 2022 15:02:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6546338155B2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1663340538; bh=E589KRRidlJBt0R54a44ogMFpId8u2UQXCHNPFZFN1E=; h=From:To:Subject:Date:From; b=nbA+AluNORSVboB+LiXjxFtcA3Gfe10P/pH5UFSCfZyWmY6PpRns4bofDPCxyzkXF YWdrbQlTCAe9NKNW3EeKxVz9LLkQmsh6+NTn3OZ39C4CQ+9/htFggUS59V/pxoTCeS vokRloo+e+7T0dXeGyQBoO5VxjI5zLu3O0YVPT7Q= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Jonathan Wakely To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r13-2699] libstdc++: Do not use nullptr in C++03-compatible code X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/heads/master X-Git-Oldrev: 15943285867a6952dbc5a603c434e61bfe32296f X-Git-Newrev: 5ad435f2a0d29486c917025dfa239b9b88c35a09 Message-Id: <20220916150218.6546338155B2@sourceware.org> Date: Fri, 16 Sep 2022 15:02:18 +0000 (GMT) List-Id: https://gcc.gnu.org/g:5ad435f2a0d29486c917025dfa239b9b88c35a09 commit r13-2699-g5ad435f2a0d29486c917025dfa239b9b88c35a09 Author: Jonathan Wakely Date: Fri Sep 16 14:27:43 2022 +0100 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: --- libstdc++-v3/include/debug/formatter.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libstdc++-v3/include/debug/formatter.h b/libstdc++-v3/include/debug/formatter.h index b4b72383e22..f120163c6d4 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()