public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-6625] libstdc++: Add 'typename' to dependent types in atomic<shared_ptr<T>>
@ 2022-01-17  9:49 Jonathan Wakely
  0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2022-01-17  9:49 UTC (permalink / raw)
  To: gcc-cvs, libstdc++-cvs

https://gcc.gnu.org/g:a923345c72aef9ebb6b32f81f4825acc11085803

commit r12-6625-ga923345c72aef9ebb6b32f81f4825acc11085803
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Mon Jan 17 09:42:35 2022 +0000

    libstdc++: Add 'typename' to dependent types in atomic<shared_ptr<T>>
    
    libstdc++-v3/ChangeLog:
    
            * include/bits/shared_ptr_atomic.h (_Sp_atomic): Add typename
            to qualified-id for dependent type.

Diff:
---
 libstdc++-v3/include/bits/shared_ptr_atomic.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libstdc++-v3/include/bits/shared_ptr_atomic.h b/libstdc++-v3/include/bits/shared_ptr_atomic.h
index 900499bae32..50aa46370ca 100644
--- a/libstdc++-v3/include/bits/shared_ptr_atomic.h
+++ b/libstdc++-v3/include/bits/shared_ptr_atomic.h
@@ -456,8 +456,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
       typename _Tp::element_type* _M_ptr;
       _Atomic_count _M_refcount;
 
-      static _Atomic_count::pointer
-      _S_add_ref(_Atomic_count::pointer __p)
+      static typename _Atomic_count::pointer
+      _S_add_ref(typename _Atomic_count::pointer __p)
       {
 	if (__p)
 	  {


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-01-17  9:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-17  9:49 [gcc r12-6625] libstdc++: Add 'typename' to dependent types in atomic<shared_ptr<T>> Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).