libstdc++-v3/ChangeLog:

        * include/bits/atomic_base.h: Tweak grammar of static assert
        messages for unsupported atomic wait on volatile.
---

Tested x86_64-linux and sparc-solaris. Pushed to trunk.

 libstdc++-v3/include/bits/atomic_base.h | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/libstdc++-v3/include/bits/atomic_base.h 
b/libstdc++-v3/include/bits/atomic_base.h
index ccea132bb679..90b8df55edea 100644
--- a/libstdc++-v3/include/bits/atomic_base.h
+++ b/libstdc++-v3/include/bits/atomic_base.h
@@ -1584,7 +1584,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
       wait(value_type __old, memory_order __m = memory_order_seq_cst) const 
noexcept
       {
        // TODO remove when volatile is supported
-       static_assert(!is_volatile_v<_Tp>, "atomics waits on volatile are not 
supported");
+       static_assert(!is_volatile_v<_Tp>,
+                     "atomic waits on volatile are not supported");
        __atomic_impl::wait(_M_ptr, __old, __m);
       }
 #endif // __glibcxx_atomic_wait
@@ -1666,7 +1667,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
       notify_one() const noexcept
       {
        // TODO remove when volatile is supported
-       static_assert(!is_volatile_v<_Tp>, "atomics waits on volatile are not 
supported");
+       static_assert(!is_volatile_v<_Tp>,
+                     "atomic waits on volatile are not supported");
        __atomic_impl::notify_one(this->_M_ptr);
       }
 
@@ -1674,7 +1676,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
       notify_all() const noexcept
       {
        // TODO remove when volatile is supported
-       static_assert(!is_volatile_v<_Tp>, "atomics waits on volatile are not 
supported");
+       static_assert(!is_volatile_v<_Tp>,
+                     "atomic waits on volatile are not supported");
        __atomic_impl::notify_all(this->_M_ptr);
       }
 #endif // __glibcxx_atomic_wait
-- 
2.51.1

Reply via email to