https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68966
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |msebor at gcc dot gnu.org --- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> --- Created attachment 37077 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37077&action=edit Prototype patch. Prototype patch. It rejects atomic_bool* operands in the __atomic_fetch_xxx builtins with an error like this: z.c:7:3: error: operand type ‘_Atomic atomic_bool * {aka _Atomic _Bool *}’ is incompatible with argument 1 of ‘__atomic_fetch_add’ __atomic_fetch_add (&a, 1, __ATOMIC_SEQ_CST); ^~~~~~~~~~~~~~~~~~