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]

[lto] Use nth_parm_type in pp_cxx_direct_abstract_declarator.


Hi,

Tested on x86_64-pc-linux-gnu.  Committed to the LTO branch as
obvious.

Kazu Hirata

2006-06-26  Kazu Hirata  <kazu@codesourcery.com>

	* cxx-pretty-print.c (pp_cxx_direct_abstract_declarator): Use
	nth_parm_type.

Index: cp/cxx-pretty-print.c
===================================================================
--- cp/cxx-pretty-print.c	(revision 114740)
+++ cp/cxx-pretty-print.c	(working copy)
@@ -1430,7 +1431,7 @@ pp_cxx_direct_abstract_declarator (cxx_p
 	{
 	  pp_base (pp)->padding = pp_before;
 	  pp_cxx_cv_qualifier_seq
-	    (pp, TREE_TYPE (TREE_VALUE (TYPE_ARG_TYPES (t))));
+	    (pp, TREE_TYPE (nth_parm_type (TYPE_ARG_TYPES (t), 0)));
 	}
       pp_cxx_exception_specification (pp, t);
       break;


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