[Bug c++/115790] GCC doesn't emit a diagnostic for deprecated copy ctor
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Jul 5 04:36:45 GMT 2024
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
More information about the Gcc-bugs
mailing list