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
This commit is contained in:
parent
eab92f58f6
commit
4e2db7a80f
4 changed files with 12 additions and 22 deletions
|
@ -1,3 +1,9 @@
|
|||
2005-03-31 Gabriel Dos Reis <gdr@integrable-solutions.net>
|
||||
|
||||
PR c++/18644
|
||||
* doc/invoke.texi (-Wsynth): Don't document, as it now is void of
|
||||
semantics.
|
||||
|
||||
2005-03-31 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
PR target/20611
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -188,7 +188,7 @@ in the following sections.
|
|||
-Weffc++ -Wno-deprecated @gol
|
||||
-Wno-non-template-friend -Wold-style-cast @gol
|
||||
-Woverloaded-virtual -Wno-pmf-conversions @gol
|
||||
-Wsign-promo -Wsynth}
|
||||
-Wsign-promo}
|
||||
|
||||
@item Objective-C and Objective-C++ Language Options
|
||||
@xref{Objective-C and Objective-C++ Dialect Options,,Options Controlling
|
||||
|
@ -1794,13 +1794,6 @@ enumerated type to a signed type, over a conversion to an unsigned type of
|
|||
the same size. Previous versions of G++ would try to preserve
|
||||
unsignedness, but the standard mandates the current behavior.
|
||||
|
||||
@item -Wsynth @r{(C++ only)}
|
||||
@opindex Wsynth
|
||||
@cindex warning for synthesized methods
|
||||
@cindex synthesized methods, warning
|
||||
Warn when G++'s synthesis behavior does not match that of cfront. For
|
||||
instance:
|
||||
|
||||
@smallexample
|
||||
struct A @{
|
||||
operator int ();
|
||||
|
|
Loading…
Add table
Reference in a new issue