Commit e676810e by Jason Merrill Committed by Jason Merrill

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

From-SVN: r171070
parent 585e9d9d
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.
......
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment