From e676810ed18f44d6b183f7608b3d68b1c5284897 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Wed, 16 Mar 2011 16:15:24 -0400 Subject: [PATCH] * call.c (build_over_call): Remove require_complete_type_sfinae call. From-SVN: r171070 --- gcc/cp/ChangeLog | 2 ++ gcc/cp/call.c | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index a1f8f049255..35d033758db 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,7 @@ 2011-03-16 Jason Merrill + * 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. diff --git a/gcc/cp/call.c b/gcc/cp/call.c index 436c9569d48..d040ec85072 100644 --- a/gcc/cp/call.c +++ b/gcc/cp/call.c @@ -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); } -- 2.30.2