commit ea9415a98877ad49f9443910f4b44e732aed0ac8 Author: Jason Merrill Date: Wed Jul 18 17:39:21 2012 -0400 * method.c (process_subob_fn): Make sure no_implicit_p is non-null before trying to store through it. diff --git a/gcc/cp/method.c b/gcc/cp/method.c index b0e9ece..20a6c87 100644 --- a/gcc/cp/method.c +++ b/gcc/cp/method.c @@ -949,7 +949,7 @@ process_subob_fn (tree fn, bool move_p, tree *spec_p, bool *trivial_p, /* Core 1402: A non-trivial copy op suppresses the implicit declaration of the move ctor/op=. */ - if (move_p && !move_fn_p (fn) && !trivial_fn_p (fn)) + if (no_implicit_p && move_p && !move_fn_p (fn) && !trivial_fn_p (fn)) *no_implicit_p = true; if (constexpr_p && !DECL_DECLARED_CONSTEXPR_P (fn))