This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/16165] -Weffc++ item 11 improvements
- From: "bkoz at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Jun 2004 02:13:41 -0000
- Subject: [Bug c++/16165] -Weffc++ item 11 improvements
- References: <20040623222332.16165.bkoz@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bkoz at gcc dot gnu dot org 2004-06-24 02:13 -------
Also, another problem is base classes with private copy contructors and
assignment operators, and derived classes without explicit definitions giving a
false warning. Although, I suppose the checks for actual allocation or a
destructor would pick this up too.
This is a pretty common idiom, ie. std::locale::facet and everything derived
from it, singletons, etc.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16165