Commit ac847e32 by Michael Snyder Committed by DJ Delorie

* cp-demangle.c (d_print_comp): Guard against null.

From-SVN: r127139
parent 870c06b9
2007-07-31 Michael Snyder <msnyder@access-company.com>
* cp-demangle.c (d_print_comp): Guard against null.
2007-07-25 Ben Elliston <bje@au.ibm.com> 2007-07-25 Ben Elliston <bje@au.ibm.com>
* Makefile.in (CFILES): Remove ternary.c. * Makefile.in (CFILES): Remove ternary.c.
......
...@@ -2912,6 +2912,12 @@ d_print_comp (struct d_print_info *dpi, ...@@ -2912,6 +2912,12 @@ d_print_comp (struct d_print_info *dpi,
typed_name = d_left (typed_name); typed_name = d_left (typed_name);
} }
if (typed_name == NULL)
{
d_print_error (dpi);
return;
}
/* If typed_name is a template, then it applies to the /* If typed_name is a template, then it applies to the
function type as well. */ function type as well. */
if (typed_name->type == DEMANGLE_COMPONENT_TEMPLATE) if (typed_name->type == DEMANGLE_COMPONENT_TEMPLATE)
......
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