https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106665
Phosit <phosit at autistici dot org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |phosit at autistici dot org --- Comment #2 from Phosit <phosit at autistici dot org> --- There is a race condition the threads in pool might access sync_point after sync_point is destroyed. If you swap the declarations the the threads in the pool are joined bevore sync_point is destroyed