[Bug 262683] #include <stdatomic.h> fails: error: unknown type name '_Bool'

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 20 Mar 2022 14:34:29 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262683

            Bug ID: 262683
           Summary: #include <stdatomic.h> fails: error: unknown type name
                    '_Bool'
           Product: Base System
           Version: 13.0-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: standards
          Assignee: standards@FreeBSD.org
          Reporter: yuri@freebsd.org

ATOMIC_VAR_INIT(3) says that in order to use functions atomic_xx '#include
<stdatomic.h>' is needed.

However, this include fails:
> In file included from test-stdatomic.cpp:3:
> /usr/include/stdatomic.h:186:17: error: unknown type name '_Bool'
> typedef _Atomic(_Bool)                  atomic_bool;
                ^

-- 
You are receiving this mail because:
You are the assignee for the bug.