* call.c (build_over_call): Remove require_complete_type_sfinae call.
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 16 Mar 2011 20:15:24 +0000 (20:15 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 16 Mar 2011 20:15:24 +0000 (20:15 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@171070 138bc75d-0d04-0410-961f-82ee72b054a4

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

index a1f8f04..35d0337 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 436c956..d040ec8 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);
     }