* call.c (build_over_call): Remove require_complete_type_sfinae call.

From-SVN: r171070
This commit is contained in:
Jason Merrill 2011-03-16 16:15:24 -04:00 committed by Jason Merrill
parent 585e9d9de3
commit e676810ed1
2 changed files with 2 additions and 2 deletions

View 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.

View 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);
}