diff options
author | Jason Merrill <jason@redhat.com> | 2012-10-25 15:54:00 +0000 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2012-10-25 15:54:00 +0000 |
commit | ee4f2b7c098cee0d3f1ac142a1cb88026a6aa3ba (patch) | |
tree | bed8a193992a8a72ab5ff86d67559fc50a45b33e /gcc/c-family | |
parent | f38db1efb4e5ff82eaae016ae67a15fceb0fbf29 (diff) |
Core 1402
cp/
* call.c (joust): An implicitly deleted move function is
worse than any non-deleted function.
* method.c (process_subob_fn): No special rules for move.
(synthesized_method_walk, implicitly_declare_fn): Likewise.
Warn about virtual base with non-trivial move assignment.
* cp-tree.h (struct lang_decl_fn): Remove suppress_implicit_decl.
(FNDECL_SUPPRESS_IMPLICIT_DECL): Remove.
c-family/
* c.opt (Wvirtual-move-assign): New.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@192813 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-family')
-rw-r--r-- | gcc/c-family/ChangeLog | 2 | ||||
-rw-r--r-- | gcc/c-family/c.opt | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index cabd82c771b..f97057ec2c5 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,5 +1,7 @@ 2012-10-25 Jason Merrill <jason@redhat.com> + * c.opt (Wvirtual-move-assign): New. + * c.opt (Winherited-variadic-ctor): New. 2012-10-25 Marc Glisse <marc.glisse@inria.fr> diff --git a/gcc/c-family/c.opt b/gcc/c-family/c.opt index 60cb726b2c9..7eb66c6175b 100644 --- a/gcc/c-family/c.opt +++ b/gcc/c-family/c.opt @@ -741,6 +741,10 @@ Wvolatile-register-var C ObjC C++ ObjC++ Var(warn_volatile_register_var) Warning LangEnabledBy(C ObjC C++ ObjC++,Wall) Warn when a register variable is declared volatile +Wvirtual-move-assign +C++ ObjC++ Var(warn_virtual_move_assign) Warning Init(1) +Warn if a virtual base has a non-trivial move assignment operator + Wwrite-strings C ObjC C++ ObjC++ Var(warn_write_strings) Warning In C++, nonzero means warn about deprecated conversion from string literals to 'char *'. In C, similar warning, except that the conversion is of course not deprecated by the ISO C standard. |