This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[C++,committed] Remove a bogus extra argument to build_nt


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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]