Commit 5210f3d0 by Jason Merrill Committed by Jason Merrill

cplus-dem.c (do_type): Fix simple array handling.

	* cplus-dem.c (do_type): Fix simple array handling.  If we fail,
	stay failed.

From-SVN: r21798
parent d12e8f59
1998-08-17 Jason Merrill <jason@yorick.cygnus.com>
* cplus-dem.c (do_type): Fix simple array handling. If we fail,
stay failed.
Mon Aug 17 10:40:34 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> Mon Aug 17 10:40:34 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* cplus-dem.c: Include config.h if it exists. Also, only * cplus-dem.c: Include config.h if it exists. Also, only
......
...@@ -2491,8 +2491,13 @@ do_type (work, mangled, result) ...@@ -2491,8 +2491,13 @@ do_type (work, mangled, result)
case 'A': case 'A':
{ {
++(*mangled); ++(*mangled);
if (!STRING_EMPTY (&decl) && decl.b[0] == '*')
{
string_prepend (&decl, "("); string_prepend (&decl, "(");
string_append (&decl, ")["); string_append (&decl, ")");
}
string_append (&decl, "[");
if (**mangled != '_')
success = demangle_template_value_parm (work, mangled, &decl, success = demangle_template_value_parm (work, mangled, &decl,
tk_integral); tk_integral);
if (**mangled == '_') if (**mangled == '_')
...@@ -2651,7 +2656,7 @@ do_type (work, mangled, result) ...@@ -2651,7 +2656,7 @@ do_type (work, mangled, result)
} }
} }
switch (**mangled) if (success) switch (**mangled)
{ {
/* A qualified name, such as "Outer::Inner". */ /* A qualified name, such as "Outer::Inner". */
case 'Q': case 'Q':
......
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