Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Mar 2022 22:29:41 +0000
From:      bugzilla-noreply@freebsd.org
To:        standards@FreeBSD.org
Subject:   [Bug 262683] #include <stdatomic.h> fails: error: unknown type name '_Bool'
Message-ID:  <bug-262683-99-uU140cpoLs@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-262683-99@https.bugs.freebsd.org/bugzilla/>
References:  <bug-262683-99@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262683

--- Comment #1 from Konstantin Belousov <kib@FreeBSD.org> ---
For default-constructible base types, corresponding atomic template
specializations
in C++ provides constructors that make use of ATOMIC_VAR_INIT() excessive (=
and
the macro is not defined in C++ AFAIR).

In fact, use of stdatomic.h in C++ is undefined, it is not listed as part of
the supported C library headers.

So the best advice there is to use <atomic> as intended by C++.  Still, I t=
hink
this small wart you noted can be covered.  See

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-262683-99-uU140cpoLs>