re PR c++/56067 (Removal of -Wsynth from doc didn't remove example)
authorPaolo Carlini <paolo.carlini@oracle.com>
Tue, 22 Jan 2013 15:09:45 +0000 (15:09 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 22 Jan 2013 15:09:45 +0000 (15:09 +0000)
2013-01-22  Paolo Carlini  <paolo.carlini@oracle.com>

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

From-SVN: r195375

gcc/ChangeLog
gcc/doc/invoke.texi

index 8ec4ee2afa5e91ee01d4ef435ff87927446a1b02..79054466dbe21a4d608ce70b4ce9fc29f8a56271 100644 (file)
@@ -1,3 +1,8 @@
+2013-01-22  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR c++/56067
+       * doc/invoke.texi: Remove left over -Wsynth example.
+
 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
 
        PR tree-optimization/56051
index d60ac9f3689b6dfec19a2828ae38545eac9f7e5c..556874800571332f4fec59c01134fe87d441a21b 100644 (file)
@@ -2673,23 +2673,6 @@ Warn when overload resolution chooses a promotion from unsigned or
 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