gcc/libiberty/testsuite
Cary Coutant 85d09f6173 Fix demangler to handle conversion operators correctly.
libiberty/
	PR other/59195
	* cp-demangle.c (struct d_info_checkpoint): New struct.
	(struct d_print_info): Add current_template field.
	(d_operator_name): Set flag when processing a conversion
	operator.
	(cplus_demangle_type): When processing <template-args> for
	a conversion operator, backtrack if necessary.
	(d_expression_1): Renamed from d_expression.
	(d_expression): New wrapper around d_expression_1.
	(d_checkpoint): New function.
	(d_backtrack): New function.
	(d_print_init): Initialize current_template.
	(d_print_comp): Set current_template.
	(d_print_cast): Put current_template in scope for
	printing conversion operator name.
	(cplus_demangle_init_info): Initialize is_expression and
	is_conversion.
	* cp-demangle.h (struct d_info): Add is_expression and
	is_conversion fields.
	* testsuite/demangle-expected: New test cases.

From-SVN: r205292
2013-11-22 14:25:49 -08:00
..
Makefile.in re PR other/12618 (core not cleaned up by 'make distclean') 2008-02-19 14:23:15 +11:00
demangle-expected Fix demangler to handle conversion operators correctly. 2013-11-22 14:25:49 -08:00
test-demangle.c * testsuite/test-demangle.c: Include unistd.h. 2013-10-27 18:35:20 +00:00
test-expandargv.c * testsuite/test-expandargv.c: Include unistd.h. 2013-10-23 21:31:45 +00:00
test-pexecute.c strverscmp.c: Update FSF address. 2005-08-17 03:31:04 +00:00