* call.c (build_over_call): Remove require_complete_type_sfinae call.
authorJason Merrill <jason@redhat.com>
Wed, 16 Mar 2011 20:15:24 +0000 (16:15 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 16 Mar 2011 20:15:24 +0000 (16:15 -0400)
From-SVN: r171070

gcc/cp/ChangeLog
gcc/cp/call.c

index a1f8f049255f423a7b1711b389623f971af09697..35d033758db1260a6ffbddf6d927500a9f2165bf 100644 (file)
@@ -1,5 +1,7 @@
 2011-03-16  Jason Merrill  <jason@redhat.com>
 
+       * call.c (build_over_call): Remove require_complete_type_sfinae call.
+
        PR c++/48132
        * decl.c (check_array_designated_initializer): Allow integer index.
        (reshape_init_array_1): Set index on the elements.
index 436c9569d48d2964985f92bc444c9487c3013289..d040ec850728e422ecc2895e76ada867d78898ad 100644 (file)
@@ -5994,8 +5994,6 @@ build_over_call (struct z_candidate *cand, int flags, tsubst_flags_t complain)
                                   argarray);
       if (TREE_THIS_VOLATILE (fn) && cfun)
        current_function_returns_abnormally = 1;
-      if (!VOID_TYPE_P (return_type))
-       require_complete_type_sfinae (return_type, complain);
       return convert_from_reference (expr);
     }