[Bug c++/58407] [C++11] Should warn about deprecated implicit generation of copy constructor/assignment
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Apr 27 12:13:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58407
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic
Status|UNCONFIRMED |NEW
Last reconfirmed| |2014-04-27
Ever confirmed|0 |1
--- Comment #9 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Andrzej Krzemienski from comment #7)
> (It used to be legal in C++03, so you couldn't legally warn about it;
That's not true, the compiler can (and does) warn about legal code.
I'm confirming this, we will want the warning at some point, and it would allow
us to improve this part of the -Weffc++ warnings:
* Item 11: Define a copy constructor and an assignment operator for classes
with dynamically allocated memory.
(see PR 16166 for more details)
Maybe we could call this warning -Wdeprecated-special-members, and have it
enabled -Weffc++ and in C++11 also by -Wdeprecated
More information about the Gcc-bugs
mailing list