https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97944
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to seurer from comment #4) > I see this natively on powerpcle for both power 8 and 9. It started I think > with or near r11-5215. > > There are some other ones that fail intermittently, too. > FAIL: 30_threads/latch/3.cc execution test > FAIL: 30_threads/semaphore/try_acquire_until.cc execution test > FAIL: 29_atomics/atomic_integral/wait_notify.cc execution test > > Possibly more. That's PR 97936 which I assumed was unrelated. But maybe this bug is actually caused by that change too. The addition of <semaphore> and std::binary_semaphore does affect the code tested by 30_threads/jthread/95989.cc It would help if I could reproduce this on *any* of my test machines though.