diff mbox

[C++,doc,trivial] PR 56067

Message ID 50FE6910.6030501@oracle.com
State New
Headers show

Commit Message

Paolo Carlini Jan. 22, 2013, 10:25 a.m. UTC
Hi,

barring objections, I'm going to commit as obvious the below, which 
removes a left over bit of documentation, thus completing 
http://gcc.gnu.org/viewcvs?view=revision&revision=97318

Thanks,
Paolo.

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

	PR c++/56067
	* doc/invoke.texi: Remove left over -Wsynth example.
diff mbox

Patch

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.
-
-@smallexample
-struct A @{
-  operator int ();
-  A& operator = (int);
-@};
-
-main ()
-@{
-  A a,b;
-  a = b;
-@}
-@end smallexample
-
-@noindent
-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