From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 33FE23858023; Wed, 19 Jul 2023 13:48:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 33FE23858023 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1689774505; bh=E65lhRxZQXtKjhnILJyxv76rAK/NN5kmWLF7cO+DVWI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ZVtkgNwog0XQtqoywXVZZuxP7EANoL9MPTxLW0gecnnjSOsg5S82IXtZwaot8CDTE 2xV4sKrz/JT4t0eL8TIKxYuZ1Qn/Zeb32vEHFEHfJU3BimVf3aaFx69ntV12w4LaMm fi4TtiR8be6IjtyOPV/k0Xu3S0vDE5CXpjzomUTQ= 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: Wed, 19 Jul 2023 13:48: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: 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 #18 from dave.anglin at bell dot net --- On 2023-07-19 6:10 a.m., redi at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D110653 > > --- Comment #16 from Jonathan Wakely --- > This should be fixed now, and you should see these in libstdc++.sum > > PASS: 21_strings/basic_string/numeric_conversions/char/stod.cc (test for = excess > errors) > PASS: 21_strings/basic_string/numeric_conversions/char/stod.cc execution = test > PASS: 21_strings/basic_string/numeric_conversions/char/stof.cc (test for = excess > errors) > PASS: 21_strings/basic_string/numeric_conversions/char/stof.cc execution = test > PASS: 21_strings/basic_string/numeric_conversions/char/stoi.cc (test for = excess > errors) > PASS: 21_strings/basic_string/numeric_conversions/char/stoi.cc execution = test > PASS: 21_strings/basic_string/numeric_conversions/char/stol.cc (test for = excess > errors) > PASS: 21_strings/basic_string/numeric_conversions/char/stol.cc execution = test > PASS: 21_strings/basic_string/numeric_conversions/char/stold.cc (test for > excess errors) > PASS: 21_strings/basic_string/numeric_conversions/char/stold.cc execution= test > PASS: 21_strings/basic_string/numeric_conversions/char/stoll.cc (test for > excess errors) > PASS: 21_strings/basic_string/numeric_conversions/char/stoll.cc execution= test > PASS: 21_strings/basic_string/numeric_conversions/char/stoul.cc (test for > excess errors) > PASS: 21_strings/basic_string/numeric_conversions/char/stoul.cc execution= test > > The char/stoll.cc and char/stoull.cc tests would actually pass for hpux11= .11 as > well, but they have the { dg-require-string-conversions "" } check which = fails. Had the following fails with attached patch: Running target unix FAIL: 20_util/from_chars/4.cc execution test FAIL: 20_util/from_chars/8.cc execution test FAIL: 20_util/to_chars/float128_c++23.cc execution test FAIL: 21_strings/basic_string/numeric_conversions/char/stof.cc execution te= st FAIL: 21_strings/basic_string/numeric_conversions/char/stold.cc execution t= est FAIL: 21_strings/basic_string/numeric_conversions/wchar_t/dr1261.cc (test f= or excess errors) UNRESOLVED: 21_strings/basic_string/numeric_conversions/wchar_t/dr1261.cc compilation failed to produce executable FAIL: 26_numerics/headers/cmath/constexpr_std_c++23.cc (test for excess err= ors) FAIL: 26_numerics/headers/cmath/functions_std_c++23.cc (test for excess err= ors) FAIL: 26_numerics/headers/cmath/nextafter_c++23.cc (test for excess errors) UNRESOLVED: 26_numerics/headers/cmath/nextafter_c++23.cc compilation failed= to produce executable FAIL: 27_io/basic_ofstream/open/char/noreplace.cc execution test FAIL: 27_io/basic_ofstream/open/wchar_t/noreplace.cc execution test FAIL: 27_io/basic_ostream/inserters_arithmetic/char/hexfloat.cc execution t= est FAIL: 29_atomics/atomic/compare_exchange_padding.cc execution test FAIL: 29_atomics/atomic/lock_free_aliases.cc (test for excess errors) FAIL: 29_atomics/atomic_ref/compare_exchange_padding.cc execution test =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 =3D=3D=3D libstdc++ Summary =3D=3D=3D # of expected passes=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 14134 # of unexpected failures=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 15 # of expected failures=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 106 # of unresolved testcases=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 2 # of unsupported tests=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 1014 The stof.cc and stold.cc tests fail in try-catch. /home/dave/gnu/gcc/gcc/libstdc++-v3/testsuite/21_strings/basic_string/numer= ic_co nversions/char/stof.cc:128: void test01(): Assertion 'test' failed. FAIL: 21_strings/basic_string/numeric_conversions/char/stof.cc execution te= st /home/dave/gnu/gcc/gcc/libstdc++-v3/testsuite/21_strings/basic_string/numer= ic_co nversions/char/stold.cc:95: void test01(): Assertion 'test' failed. FAIL: 21_strings/basic_string/numeric_conversions/char/stold.cc execution t= est Will retest with your commit.=