aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
authorGabriel Dos Reis <gdr@integrable-solutions.net>2005-03-31 14:21:14 +0000
committerGabriel Dos Reis <gdr@gcc.gnu.org>2005-03-31 14:21:14 +0000
commit4e2db7a80fb4895d3fd0885991c30cf7ac5063f2 (patch)
tree6347b3e4e4c088f8c6d0c0058426b83102b0b166 /gcc/cp
parenteab92f58f68035c4360ff526bcf5d6ec52cc3f8c (diff)
downloadgcc-4e2db7a80fb4895d3fd0885991c30cf7ac5063f2.zip
gcc-4e2db7a80fb4895d3fd0885991c30cf7ac5063f2.tar.gz
gcc-4e2db7a80fb4895d3fd0885991c30cf7ac5063f2.tar.bz2
re PR c++/18644 (-Wsynth warning in <complex>)
doc/ PR c++/18644 * doc/invoke.texi (-Wsynth): Don't document, as it now is void of semantics. cp/ PR c++/18644 * call.c (build_new_op): Remove check for -Wsynth. From-SVN: r97318
Diffstat (limited to 'gcc/cp')
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/call.c14
2 files changed, 5 insertions, 14 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index d232838..b63906c 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,8 @@
+2005-03-31 Gabriel Dos Reis <gdr@integrable-solutions.net>
+
+ PR c++/18644
+ * call.c (build_new_op): Remove check for -Wsynth.
+
2005-03-31 Jan Hubicka <jh@suse.cz>
* decl2.c (finish_objects): Mark ctor as needed.
diff --git a/gcc/cp/call.c b/gcc/cp/call.c
index 5737e4f..131e175 100644
--- a/gcc/cp/call.c
+++ b/gcc/cp/call.c
@@ -3750,20 +3750,6 @@ build_new_op (enum tree_code code, int flags, tree arg1, tree arg2, tree arg3,
if (overloaded_p)
*overloaded_p = true;
- if (warn_synth
- && fnname == ansi_assopname (NOP_EXPR)
- && DECL_ARTIFICIAL (cand->fn)
- && candidates->next
- && ! candidates->next->next)
- {
- warning ("using synthesized %q#D for copy assignment",
- cand->fn);
- cp_warning_at (" where cfront would use %q#D",
- cand == candidates
- ? candidates->next->fn
- : candidates->fn);
- }
-
result = build_over_call (cand, LOOKUP_NORMAL);
}
else