re PR c++/8211 (-Weffc++ warns about copyable classes with func ptr members)
authorGiovanni Bajo <giovannibajo@gcc.gnu.org>
Fri, 9 Jul 2004 00:59:05 +0000 (00:59 +0000)
committerGiovanni Bajo <giovannibajo@gcc.gnu.org>
Fri, 9 Jul 2004 00:59:05 +0000 (00:59 +0000)
commitdd29d26b24928bdbcbdb1e7cbe09284f76f886f7
tree1114998697276d9bcef8e06602efabdc91eb7497
parent45dc67b726b159bfc8740f442025ef4b6b619836
re PR c++/8211 (-Weffc++ warns about copyable classes with func ptr members)

PR c++/8211
PR c++/16165
* class.c (check_field_decls): Improve -Weffc++ warning: do not
warn for pointers to functions/members, or for classes without
destructors.

PR c++/8211
PR c++/16165
* g++.dg/warn/effc3.C: New test.

From-SVN: r84338
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/effc3.C [new file with mode: 0644]