OSDN Git Service

PR c++/53953
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 13 Jul 2012 15:09:47 +0000 (15:09 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 13 Jul 2012 15:09:47 +0000 (15:09 +0000)
* method.c (synthesized_method_walk): Initialize no_implicit_p sooner.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@189466 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 3d98731..5ac7c3f 100644 (file)
@@ -1,3 +1,8 @@
+2012-07-13  Jason Merrill  <jason@redhat.com>
+
+       PR c++/53953
+       * method.c (synthesized_method_walk): Initialize no_implicit_p sooner.
+
 2012-07-10  Jason Merrill  <jason@redhat.com>
 
        DR 1402
index 1fd723f..c46c372 100644 (file)
@@ -1123,6 +1123,9 @@ synthesized_method_walk (tree ctype, special_function_kind sfk, bool const_p,
   if (spec_p)
     *spec_p = (cxx_dialect >= cxx0x ? noexcept_true_spec : empty_except_spec);
 
+  if (no_implicit_p)
+    *no_implicit_p = false;
+
   if (deleted_p)
     {
       /* "The closure type associated with a lambda-expression has a deleted
@@ -1198,9 +1201,6 @@ synthesized_method_walk (tree ctype, special_function_kind sfk, bool const_p,
   if (trivial_p)
     *trivial_p = expected_trivial;
 
-  if (no_implicit_p)
-    *no_implicit_p = false;
-
   /* The TYPE_HAS_COMPLEX_* flags tell us about constraints from base
      class versions and other properties of the type.  But a subobject
      class can be trivially copyable and yet have overload resolution