https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65467
Bug ID: 65467 Summary: [libgomp] sorry, unimplemented: '_Atomic' with OpenMP Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libgomp Assignee: unassigned at gcc dot gnu.org Reporter: sebastian.hu...@embedded-brains.de CC: jakub at gcc dot gnu.org It seems that <stdatomic.h> is not available with -fopenmp: stdatomic.h:40:1: sorry, unimplemented: '_Atomic' with OpenMP typedef _Atomic _Bool atomic_bool; Is this a principal problem with the OpenMP standard or libgomp? The __atomic built-ins seem to work, e.g. int f(int *a, int b) { return __atomic_fetch_add(a, b, 0); }