From: Tomasz KamiƄski Date: Fri, 23 Jan 2026 10:09:08 +0000 (+0100) Subject: libstdc++: Explicitly call _Mo_base() in _Cpy_base copy-constructor [PR123758] X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7e5113e592c54c5893ba096791e1f1eddf7684d;p=thirdparty%2Fgcc.git 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 --git a/libstdc++-v3/include/bits/funcwrap.h b/libstdc++-v3/include/bits/funcwrap.h index 67fd591e963..b8dd6fb7aea 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&