re PR c++/16240 (g++ generates incorrect mangled name)

PR other/16240
	* cp-demangle.c (d_expr_primary): Check for a failure return from
	cplus_demangle_type.

From-SVN: r83791
This commit is contained in:
Ian Lance Taylor 2004-06-28 15:23:33 +00:00 committed by Ian Lance Taylor
parent 3e1f1ba5dc
commit 00a5aa9c30
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2004-06-28 Ian Lance Taylor <ian@wasabisystems.com>
PR other/16240
* cp-demangle.c (d_expr_primary): Check for a failure return from
cplus_demangle_type.
2004-05-31 Danny Smith <dannysmith@users.sourceforge.net>
* pex-win32.c (fix_argv): Expand comment.

View File

@ -2398,6 +2398,8 @@ d_expr_primary (di)
const char *s;
type = cplus_demangle_type (di);
if (type == NULL)
return NULL;
/* If we have a type we know how to print, we aren't going to
print the type name itself. */