[Bug libstdc++/124540] FAIL: 26_numerics/random/uniform_real_distribution/operators/gencanon.cc starting from - r16-7599-g8d8725bedd2f7c
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124540 Jonathan Wakely changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|--- |FIXED --- Comment #6 from Jonathan Wakely --- Fixed
[Bug libstdc++/124540] FAIL: 26_numerics/random/uniform_real_distribution/operators/gencanon.cc starting from - r16-7599-g8d8725bedd2f7c
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124540 --- Comment #5 from GCC Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:37a9529bcc8b2e550b39fff2f7b55ed578fb7e19 commit r16-8713-g37a9529bcc8b2e550b39fff2f7b55ed578fb7e19 Author: Jonathan Wakely Date: Thu Apr 16 16:08:45 2026 +0100 libstdc++: Skip std::generate_canonical tests for IBM long double [PR124540] This tests assumes IEEE semantics, so fails on POWER with IBM long double format. Just skip the long double part of the test. libstdc++-v3/ChangeLog: PR libstdc++/124540 * testsuite/26_numerics/random/uniform_real_distribution/operators/gencanon.cc: Skip long double tests for IBM long double format.
[Bug libstdc++/124540] FAIL: 26_numerics/random/uniform_real_distribution/operators/gencanon.cc starting from - r16-7599-g8d8725bedd2f7c
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124540 Jonathan Wakely changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |redi at gcc dot gnu.org Status|NEW |ASSIGNED
[Bug libstdc++/124540] FAIL: 26_numerics/random/uniform_real_distribution/operators/gencanon.cc starting from - r16-7599-g8d8725bedd2f7c
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124540 --- Comment #4 from Kishan Parmar --- Sorry, I pointed at the wrong commit. This test passed and then started failing again later, so I ended up reporting the wrong SHA.
[Bug libstdc++/124540] FAIL: 26_numerics/random/uniform_real_distribution/operators/gencanon.cc starting from - r16-7599-g8d8725bedd2f7c
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124540
--- Comment #3 from Jonathan Wakely ---
/home/jwakely/src/gcc/libstdc++-v3/testsuite/26_numerics/random/uniform_real_distribution/operators/gencanon.cc:101:
void test01(RNG&, RNG&, int&) [with T = long double; RNG =
std::mersenne_twister_engine]: Assertion
'false' failed.
We should probably just disable the long double tests for double-double,
something like this:
---
a/libstdc++-v3/testsuite/26_numerics/random/uniform_real_distribution/operators/gencanon.cc
+++
b/libstdc++-v3/testsuite/26_numerics/random/uniform_real_distribution/operators/gencanon.cc
@@ -201,11 +201,13 @@ test00()
VERIFY(skips == 0);
}
{ // long double
+#if __LDBL_MANT_DIG__ != 106
int skips{};
auto rng2{rng};
auto rng3{rng};
test01(rng2, rng3, skips);
VERIFY(skips == 0);
+#endif
}
#ifndef _GLIBCXX_GENERATE_CANONICAL_STRICT
# ifdef __SIZEOF_FLOAT128__
[Bug libstdc++/124540] FAIL: 26_numerics/random/uniform_real_distribution/operators/gencanon.cc starting from - r16-7599-g8d8725bedd2f7c
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124540 Jonathan Wakely changed: What|Removed |Added Target Milestone|--- |16.0
[Bug libstdc++/124540] FAIL: 26_numerics/random/uniform_real_distribution/operators/gencanon.cc starting from - r16-7599-g8d8725bedd2f7c
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124540 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW CC||ncm at gcc dot gnu.org Ever confirmed|0 |1 Last reconfirmed||2026-03-16 --- Comment #2 from Jonathan Wakely --- It was already failing before that commit, but the log would show -std=gnu++17 not -std=gnu++20 It was probably failing on power since the test was added, which was r16-6177-g866bc8a9214b1d00402fdbdcb976688a95c98f65
[Bug libstdc++/124540] FAIL: 26_numerics/random/uniform_real_distribution/operators/gencanon.cc starting from - r16-7599-g8d8725bedd2f7c
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124540 Jonathan Wakely changed: What|Removed |Added Component|testsuite |libstdc++ --- Comment #1 from Jonathan Wakely --- I don't think that's the right commit.
