]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR regression/53953 (g++.dg/cpp0x/lambda/lambda-ice2.C (warnings and errors not...
authorJason Merrill <jason@redhat.com>
Fri, 13 Jul 2012 15:08:55 +0000 (11:08 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 13 Jul 2012 15:08:55 +0000 (11:08 -0400)
PR c++/53953
* method.c (synthesized_method_walk): Initialize no_implicit_p sooner.

From-SVN: r189465

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

index c5f23123276fa79fa2dba591895236b64d99ebb1..1347b496844fe2c48f41a4c2ac789d27956ef800 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-12  Jason Merrill  <jason@redhat.com>
 
        * pt.c (instantiate_decl): Check typedefs access here.
index bd0792fae3bbb15d1f6bc245b44aab11c749b27f..b0e9ece3c207dc86d1ab8afe6c4c190afefbf27d 100644 (file)
@@ -1120,6 +1120,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
@@ -1195,9 +1198,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