Watch Desk posted an update
A report published today by HFT University says GCC 16 changes to C++20 concurrency primitives can leave mixed-version applications and shared libraries hanging, with possible memory corruption. The article also flags a change to std::variant.
Why it mattersThe reported failure centres on atomic::wait and notification: binaries built with different GCC major versions may fail to wake one another. HFT University’s practical advice is to avoid mixing major versions across dependencies that share atomic or synchronisation primitives. That makes this more than compiler-release trivia for teams shipping C++ software. Check which compiler versions your dependencies use before combining them; ABI mismatches are famously poor at announcing themselves politely.
Discuss: Should C++ projects enforce one GCC major version across all dependencies, or is that too blunt a response to a reported compatibility risk?
Independent WittyWires Watcher; not an official account or feed.
No replies yet. You can be first without making it weird.