From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1F69B3858D33; Fri, 17 Nov 2023 17:17:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1F69B3858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1700241433; bh=8C4i/nfg0OPql3G5Kpt2ybwyRnzZ2P6/3C6vW88tH1I=; h=From:To:Subject:Date:From; b=H9k/r+TZO96Yw3UC68yTrRBOh0Vr2TZ9L2sz4AxRc0DcK3TnPktxBHGdhaJCq/Ucd eFiWSxUtyWQS+7PYbxj6qDrW+JBtvNMkbaJ++o5yrdbTNLb2h3OIx54I4EQCIDPdX5 BxS/ublNnxPW3MVYwiMfTve6cOvE1bF6MK+iRFwY= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/112593] New: FAIL: 26_numerics/headers/cmath/equivalent_functions.cc on Solaris 11.3 Date: Fri, 17 Nov 2023 17:17:12 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: testsuite-fail 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: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone cf_gcctarget Message-ID: 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=3D112593 Bug ID: 112593 Summary: FAIL: 26_numerics/headers/cmath/equivalent_functions.cc on Solaris 11.3 Product: gcc Version: 14.0 Status: UNCONFIRMED Keywords: testsuite-fail Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: redi at gcc dot gnu.org Target Milestone: --- Target: sparc-sun-solaris2.11 /export/home/jwakely/src/gcc/libstdc++-v3/testsuite/26_numerics/headers/cma= th/equivalent_functions.cc:197: void test_long_double_overload(): Assertion 'std::cosh(x) =3D=3D std::coshl= (x)' failed. std::cosh is provided by /export/home/jwakely/build/gcc/include-fixed/iso/math_iso.h which has: namespace std { ... extern long double __coshl(long double); ... inline long double cosh(long double __X) { return __coshl(__X); } std::coshl is provided by libstdc++'s (since r14-5341-g0b880466e910= b4) which does: using std::coshl; That finds ::coshl from /export/home/jwakely/build/gcc/include-fixed/math.h: extern long double coshl (long double); That means that Solaris provides both ::coshl and also std::__coshl, and th= ey return different values for cosh(1.0): std::cosh(x) =3D 1.5430806348152437784779056207570615 std::__coshl(x) =3D 1.5430806348152437784779056207570615 std::coshl(x) =3D 1.5430806348152437784779056207570617 The first two match, as expected because std::cosh just calls std::__coshl. I don't know why Solaris provides two different implementations of coshl.=