public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.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 [thread overview] Message-ID: <bug-112593-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112593 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/cmath/equivalent_functions.cc:197: void test_long_double_overload(): Assertion 'std::cosh(x) == 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 <cmath> (since r14-5341-g0b880466e910b4) 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 they return different values for cosh(1.0): std::cosh(x) = 1.5430806348152437784779056207570615 std::__coshl(x) = 1.5430806348152437784779056207570615 std::coshl(x) = 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.
next reply other threads:[~2023-11-17 17:17 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-11-17 17:17 redi at gcc dot gnu.org [this message] 2023-11-23 14:02 ` [Bug libstdc++/112593] FAIL: 26_numerics/headers/cmath/equivalent_functions.cc on Solaris ro at gcc dot gnu.org 2023-11-23 14:44 ` redi at gcc dot gnu.org 2024-06-04 12:49 ` ro at CeBiTec dot Uni-Bielefeld.DE
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-112593-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).