c++/689: [2003-05-03] [diagnostic] this warning is not helpful: `class xxxx' only defines a private destructor and has no friend
Gabriel Dos Reis
gdr@acm.org
Sun May 11 10:03:00 GMT 2003
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=689
Jeff --
I can't tell you how helpful or unhelpul that warning is.
However, g++ does provide an option to turn it on and off
-Wctor-dtor-privacy
-Wno-ctor-dtor-privacy
Maybe turning this warning on only if -Wextra is specified might be less
restrictive than the current situation. I'm going to reclassify this
PR.
Thanks,
-- Gaby
More information about the Gcc-bugs
mailing list