Commit 6df5a5c7 by Mark Mitchell Committed by Mark Mitchell

cp-demangle.c (demangle_type): Correct thinko in substitution processing.

	* cp-demangle.c (demangle_type): Correct thinko in substitution
	processing.

From-SVN: r73751
parent 3d4f0dab
2003-11-19 Mark Mitchell <mark@codesourcery.com>
* cp-demangle.c (demangle_type): Correct thinko in substitution
processing.
2003-11-18 Ian Lance Taylor <ian@wasabisystems.com>
* cp-demangle.c (demangle_operator_name): Remove space before
......
......@@ -2557,10 +2557,12 @@ demangle_type (dm)
case 'S':
/* First check if this is a special substitution. If it is,
this is a <class-enum-type>. Special substitutions have a
letter following the `S'; other substitutions have a digit
or underscore. */
lower-case letter following the `S'; other substitutions
have a digit, upper-case letter, or underscore. */
peek_next = peek_char_next (dm);
if (IS_DIGIT (peek_next) || peek_next == '_')
if (IS_DIGIT (peek_next)
|| (peek_next >= 'A' && peek_next <= 'Z')
|| peek_next == '_')
{
RETURN_IF_ERROR (demangle_substitution (dm, &encode_return_type));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment