aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc
diff options
context:
space:
mode:
authorPaolo Carlini <paolo.carlini@oracle.com>2013-01-22 15:09:45 +0000
committerPaolo Carlini <paolo.carlini@oracle.com>2013-01-22 15:09:45 +0000
commit374e3baa34755a755f2824e24ef7d170abf2b610 (patch)
tree7139654c481367fdcda8c09f4656552f68cf92a6 /gcc/doc
parentfbf9ba9e2a811a9924cf8ff368e8a1a2004c8cf7 (diff)
2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/56067 * doc/invoke.texi: Remove left over -Wsynth example. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@195375 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/doc')
-rw-r--r--gcc/doc/invoke.texi17
1 files changed, 0 insertions, 17 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index d60ac9f3689..55687480057 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -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