[gcc r16-6992] libstdc++: Explicitly call _Mo_base() in _Cpy_base copy-constructor [PR123758]
Tomasz Kaminski
tkaminsk@gcc.gnu.org
Fri Jan 23 10:13:44 GMT 2026
https://gcc.gnu.org/g:d7e5113e592c54c5893ba096791e1f1eddf7684d
commit r16-6992-gd7e5113e592c54c5893ba096791e1f1eddf7684d
Author: Tomasz Kamiński <tkaminsk@redhat.com>
Date: Fri Jan 23 11:09:08 2026 +0100
libstdc++: Explicitly call _Mo_base() in _Cpy_base copy-constructor [PR123758]
This silences the warning while preserving current (correct) behavior.
PR libstdc++/123758
libstdc++-v3/ChangeLog:
* include/bits/funcwrap.h (_Cpy_base(_Cpy_base const&)):
Explicitly call _Mo_base() in initializer list.
Diff:
---
libstdc++-v3/include/bits/funcwrap.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/libstdc++-v3/include/bits/funcwrap.h b/libstdc++-v3/include/bits/funcwrap.h
index 67fd591e9635..b8dd6fb7aeae 100644
--- a/libstdc++-v3/include/bits/funcwrap.h
+++ b/libstdc++-v3/include/bits/funcwrap.h
@@ -495,6 +495,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
_Cpy_base(_Cpy_base&&) = default;
_Cpy_base(_Cpy_base const& __x)
+ : _Mo_base()
{ _M_copy(__x); }
_Cpy_base&
More information about the Libstdc++-cvs
mailing list