[C++ doc patch, trivial] PR 56067

Paolo Carlini paolo.carlini@oracle.com
Tue Jan 22 10:25:00 GMT 2013


barring objections, I'm going to commit as obvious the below, which 
removes a left over bit of documentation, thus completing 


-------------- next part --------------
2013-01-22  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/56067
	* doc/invoke.texi: Remove left over -Wsynth example.
-------------- next part --------------
Index: doc/invoke.texi
--- doc/invoke.texi	(revision 195369)
+++ doc/invoke.texi	(working copy)
@@ -2673,23 +2673,6 @@ Warn when overload resolution chooses a promotion
 enumerated type to a signed type, over a conversion to an unsigned type of
 the same size.  Previous versions of G++ tried to preserve
 unsignedness, but the standard mandates the current behavior.
-struct A @{
-  operator int ();
-  A& operator = (int);
-main ()
-  A a,b;
-  a = b;
-@end smallexample
-In this example, G++ synthesizes a default @samp{A& operator =
-(const A&);}, while cfront uses the user-defined @samp{operator =}.
 @end table
 @node Objective-C and Objective-C++ Dialect Options

More information about the Gcc-patches mailing list