https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82033
--- Comment #2 from Sam Thursfield <sam.thursfield at codethink dot co.uk> --- Sorry, I really thought I'd tracked down the correct cause before reporting the bug, but it seems something else I'm doing is breaking the <thread> library.