https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105934

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Somewhat related:

The MSVC testsuite has an example using atomic_store<Base> that fails with
libstdc++:

https://github.com/microsoft/STL/blob/main/tests/std/tests/Dev11_1066589_shared_ptr_atomic_deadlock/test.cpp

atomic_store<Base>(shared_ptr<Base>, shared_ptr<Derived>) gives an error
outside the immediate context, because the typename atomic<T>::value_type
parameter causes instantiation of atomic<shared_ptr<Base>> which is ill-formed.

I think MSVC has some workaround for this, which deviates from what P0558 did.

Reply via email to