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]

C++ PATCH: demangler fix


This one-liner fixes a problem in the new-ABI demangler regarding
demangling of expressions in template arguments.

in libiberty:

	* cp-demangle.c (demangle_template_arg): Eat an `E' after an
	<expression>. 



Index: cp-demangle.c
===================================================================
RCS file: /cvs/gcc/egcs/libiberty/cp-demangle.c,v
retrieving revision 1.19
diff -c -p -r1.19 cp-demangle.c
*** cp-demangle.c	2000/09/05 03:46:56	1.19
--- cp-demangle.c	2000/09/05 05:48:04
*************** demangle_template_arg (dm)
*** 2873,2878 ****
--- 2873,2879 ----
        /* Expression.  */
        advance_char (dm);
        RETURN_IF_ERROR (demangle_expression (dm));
+       RETURN_IF_ERROR (demangle_char (dm, 'E'));
        break;
  
      default:

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