From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8A5B53858D20; Wed, 12 Jul 2023 20:26:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8A5B53858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1689193582; bh=NULTDvEN+HfqY7vqTPrrUZc+fr62dkHmmxMcQRfIQyA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=x6D0+x7fcnGENIyoewf5+jL4NjSUmpISv2e/eBz1FSluoK2n25zmdJl9mvhe0bFQQ aDTZcuwqlFKtQfeqwwxLZdu3+JKQtASpTfrMgHvDCw2kbKTslGmLV63wy13xiizpEv EzXXa2lkfBcrIstATm13wPcZMyeYjo+1thWnLBgM= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/110646] [14 Regression] gensupport.cc:643:18: error: 'stoi' is not a member of 'std' Date: Wed, 12 Jul 2023 20:26:22 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D110646 --- Comment #2 from Jonathan Wakely --- (In reply to John David Anglin from comment #0) > libstdc++ provides std::stoi in basic_string.h when _GLIBCXX_USE_C99_STDL= IB > is 1. However, hpux11.11 lacks all the routines needed when > _GLIBCXX_USE_C99_STDLIB is 1. But it does have strtol, atol, atoi, strtou= l, > strtod and atof. strtoll and strtoull are not needed on hppa64 as long l= ong > and long are equivalent. So it seems the string conversion routines could > be provided in basic_string.h for this target. Yes, those checks could be more granular. I'll split out the checks needed for std::stoi etc.=