From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EE7E43858410; Fri, 21 Jul 2023 18:27:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EE7E43858410 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1689964043; bh=xUp/EGxsWw2VNzd1fFr0ow1yykrlbKZPLEsM/f5molA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=lzRSAxkKMiJK1Pfw7WmW9ZllXx11m+0LzFwJoLhiwAQ2DGU79KGTRJQ9AAg/ENjUC ijLi4tzrvUAOZS52ZxQrOfOuiOvthWicg5eNNvnZOFDgRucxE1p4OCK+RM/RkxJGJQ /AOX2r56Ds+K0dZjis7WOcQTjq1he/BRbzvQOeg0= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/110653] Support std::stoi etc. without C99 APIs Date: Fri, 21 Jul 2023 18:27:23 +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: redi at gcc dot gnu.org 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 #21 from Jonathan Wakely --- (In reply to dave.anglin from comment #20) > The stoll and stoull tests pass when dg-require-string-conversions is 1.= =C2=A0 > The stold test > fails, I think because it returns LDBL_MAX instead of HUGE_VALL (inf).=C2= =A0 See > _GLIBCXX_HAVE_BROKEN_STRTOLD comment in /config/os/hpux/os_defines.h. Aha. > There is a problem with std::stof.=C2=A0 It throws an out of range except= ion for > 0.=C2=A0 It needs to > check for 0 value. Oops :-) I'll fix both of these on Monday - thanks for the testing and analysis.=