This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: C++ PATCH: Fix PR/689 and PR/9257


"Joseph S. Myers" <jsm28@cam.ac.uk> writes:

| On Sun, 11 May 2003, Gabriel Dos Reis wrote:
| 
| > + 2003-05-11  Gabriel Dos Reis  <gdr@integrable-solutions.net>
| > + 
| > + 	PR C++/689
| > + 	PR C++/9257
| > + 	* c-opts.c (c_common_decode_option): Don't set
| > + 	warn_ctor_dtor_privacy wen -Wall.
| > + 	* c-common.c (warn_ctor_dtor_privacy): Don't turn on by default.
| 
| The manual, which states in invoke.texi that this warning is enabled by
| default, needs updating.

Fixed with this.

-- Gaby
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ChangeLog,v
retrieving revision 1.17764
diff -p -r1.17764 ChangeLog
*** ChangeLog	11 May 2003 15:47:52 -0000	1.17764
--- ChangeLog	11 May 2003 16:04:28 -0000
***************
*** 1,3 ****
--- 1,7 ----
+ 2003-05-11  Gabriel Dos Reis <gdr@integrable-solutions.net>
+ 
+ 	* doc/invoke.texi (Wctor-dtor-privacy): Update documentation.
+ 
  2003-05-11  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
  
  	* varasm.c (copy_constant, case VIEW_CONVERT_EXPR): New case.
Index: doc/invoke.texi
===================================================================
RCS file: /cvs/gcc/gcc/gcc/doc/invoke.texi,v
retrieving revision 1.273
diff -p -r1.273 invoke.texi
*** doc/invoke.texi	7 May 2003 22:11:35 -0000	1.273
--- doc/invoke.texi	11 May 2003 16:04:36 -0000
*************** Instantiations of these templates may be
*** 1597,1603 ****
  @opindex Wctor-dtor-privacy
  Warn when a class seems unusable, because all the constructors or
  destructors in a class are private and the class has no friends or
! public static member functions.  This warning is enabled by default.
  
  @item -Wnon-virtual-dtor @r{(C++ only)}
  @opindex Wnon-virtual-dtor
--- 1597,1603 ----
  @opindex Wctor-dtor-privacy
  Warn when a class seems unusable, because all the constructors or
  destructors in a class are private and the class has no friends or
! public static member functions.
  
  @item -Wnon-virtual-dtor @r{(C++ only)}
  @opindex Wnon-virtual-dtor


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]