https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115790
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Also it is documented this way too: -Wdeprecated-copy (C++ and Objective-C++ only) Warn that the implicit declaration of a copy constructor or copy assignment operator is deprecated if the class has a user-provided copy constructor or copy assignment operator, in C++11 and up. This warning is enabled by -Wextra. With -Wdeprecated-copy-dtor, also deprecate if the class has a user-provided destructor. https://gcc.gnu.org/onlinedocs/gcc-14.1.0/gcc/C_002b_002b-Dialect-Options.html#index-Wdeprecated-copy