From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id F04B93858C54; Fri, 14 Jul 2023 01:20:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F04B93858C54 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1689297624; bh=HPM+AHxaXntbAu1NZs3Audbyh9GUpqNHforuU0LErD4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=BlbR/PY7Uw2vG4wbGEQLhEa18ZjPXXuXnYFortQLLGUDNK+X55g9BnorF3vMtrFbI bnahMMR1i9QBRbfhMjT1vqliQBLHcGzLS3i8u+8/VZpvkzTLCYTsLZmEFWAS6BicaL QxuQFLmdToMLWjKhX6Hd4qzZl4da0zqLcZeroSAE= From: "dave.anglin at bell dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/110653] Support std::stoi etc. without C99 APIs Date: Fri, 14 Jul 2023 01:20:24 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dave.anglin at bell dot net X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- 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=3D110653 --- Comment #8 from dave.anglin at bell dot net --- On 2023-07-13 2:16 p.m., dave.anglin at bell dot net wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D110653 > > --- Comment #7 from dave.anglin at bell dot net --- > On 2023-07-13 1:57 p.m., dave.anglin at bell dot net wrote: >> ./hppa64-hp-hpux11.11/libstdc++-v3/include/bits/basic_string.h:4161:36: = error: >> 'strtold' is not a member of 'std'; did you mean 'strtoll'? > That's a problem with stdlib.h header. I thought this was because we lack _NAMESPACE_STD_START and _NAMESPACE_STD_= END statements around the strtold declaration in stdlib.h, but this didn't help. Maybe we = lack a define for _NAMESPACE_STD /* ANSI C++ namespace std support */ #ifdef _NAMESPACE_STD #define _NAMESPACE_STD_START namespace std { #define _NAMESPACE_STD_END } or maybe "using::strtold" additions are needed to various cstdlib files in = gcc.=