]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
method.c (process_subob_fn): Make sure no_implicit_p is non-null before trying to...
authorJason Merrill <jason@redhat.com>
Thu, 19 Jul 2012 01:36:41 +0000 (21:36 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 19 Jul 2012 01:36:41 +0000 (21:36 -0400)
* method.c (process_subob_fn): Make sure no_implicit_p is non-null
before trying to store through it.

From-SVN: r189638

gcc/cp/ChangeLog
gcc/cp/method.c

index ef4e8acdb997868700aa7ea948e9507d51786e02..8865db39ba7e102076f83ff542adcd8530ad9b5d 100644 (file)
@@ -1,3 +1,8 @@
+2012-07-18  Jason Merrill  <jason@redhat.com>
+
+       * method.c (process_subob_fn): Make sure no_implicit_p is non-null
+       before trying to store through it.
+
 2012-07-17  Jason Merrill  <jason@redhat.com>
 
        PR c++/53995
index b0e9ece3c207dc86d1ab8afe6c4c190afefbf27d..20a6c87d9a6b5edd0b460eedff75bc635e7b8d5b 100644 (file)
@@ -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))