https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101439
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|DUPLICATE |---
Status|RESOLVED |NEW
Last reconfirmed| |2021-08-28
Ever confirmed|0 |1
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
LLVM's libc++ does:
template <class _Tp, bool = is_integral<_Tp>::value && !is_same<_Tp,
bool>::value>
struct __atomic_base
{
mutable __cxx_atomic_impl<_Tp> __a_;
...
template <class _Tp>
struct __atomic_base<_Tp, true>
: public __atomic_base<_Tp, false>