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.
---
Pushed to trunk. Tested on x86_64-linux locally.
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 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&
--
2.52.0