From a827d14969e17fb10508f6c7dfcc2c87e99ecc0d Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Tue, 11 Oct 1994 18:39:14 +0000 Subject: [PATCH] (build_overload_call_real): Don't immediately do array->pointer conversion. From-SVN: r8254 --- gcc/cp/call.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/cp/call.c b/gcc/cp/call.c index 89921d6dd54..7373acafd61 100644 --- a/gcc/cp/call.c +++ b/gcc/cp/call.c @@ -2697,7 +2697,11 @@ build_overload_call_real (fnname, parms, flags, final_cp, buildxxx) final_cp->h.code = EVIL_CODE; return error_mark_node; } - if (TREE_CODE (t) == ARRAY_TYPE || TREE_CODE (t) == OFFSET_TYPE) + if (TREE_CODE (t) == OFFSET_TYPE) +#if 0 + /* This breaks reference-to-array parameters. */ + || TREE_CODE (t) == ARRAY_TYPE +#endif { /* Perform the conversion from ARRAY_TYPE to POINTER_TYPE in place. Also convert OFFSET_TYPE entities to their normal selves. -- 2.30.2