This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[C++,committed] Remove a bogus extra argument to build_nt
- From: Kriang Lerdsuwanakij <lerdsuwa at users dot sourceforge dot net>
- To: <gcc-patches at gcc dot gnu dot org>
- Date: Sat, 22 Nov 2003 16:15:18 +0700 (ICT)
- Subject: [C++,committed] Remove a bogus extra argument to build_nt
- Reply-to: <lerdsuwa at users dot sourceforge dot net>
Hi
This patch removes a bogus argument to a 'build_nt' function call.
ARRAY_REF needs only 2 operands. The extra 'tsubst_expr' is remnant
from earlier code that happens to compile without error. Applied to
mainline as obvious. Tested on i686-pc-linux-gnu.
--Kriang
2003-11-22 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
* pt.c (tsubst) <ARRAY_REF>: Remove erroneous argument to build_nt.
diff -cprN gcc-main-save/gcc/cp/pt.c gcc-main-new/gcc/cp/pt.c
*** gcc-main-save/gcc/cp/pt.c Sat Nov 22 15:54:02 2003
--- gcc-main-new/gcc/cp/pt.c Fri Nov 21 20:42:35 2003
*************** tsubst (tree t, tree args, tsubst_flags_
*** 7121,7127 ****
if (e1 == error_mark_node || e2 == error_mark_node)
return error_mark_node;
! return build_nt (ARRAY_REF, e1, e2, tsubst_expr);
}
case CALL_EXPR:
--- 7121,7127 ----
if (e1 == error_mark_node || e2 == error_mark_node)
return error_mark_node;
! return build_nt (ARRAY_REF, e1, e2);
}
case CALL_EXPR: