aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2011-03-16 16:15:24 -0400
committerJason Merrill <jason@gcc.gnu.org>2011-03-16 16:15:24 -0400
commite676810ed18f44d6b183f7608b3d68b1c5284897 (patch)
treeb8b587f7c6c5defd531cd82f5a04c8bca396f686
parent585e9d9de3a60692b1d3b0e91dac9f9ec298e142 (diff)
downloadgcc-e676810ed18f44d6b183f7608b3d68b1c5284897.zip
gcc-e676810ed18f44d6b183f7608b3d68b1c5284897.tar.gz
gcc-e676810ed18f44d6b183f7608b3d68b1c5284897.tar.bz2
* call.c (build_over_call): Remove require_complete_type_sfinae call.
From-SVN: r171070
-rw-r--r--gcc/cp/ChangeLog2
-rw-r--r--gcc/cp/call.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index a1f8f04..35d0337 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -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.
diff --git a/gcc/cp/call.c b/gcc/cp/call.c
index 436c956..d040ec8 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);
}