diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-28 15:23:33 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-28 15:23:33 +0000 |
commit | a2e044d676e5e9ebbc2275838880a44be20d07fc (patch) | |
tree | 5bd693b3f3af2ca6bc4477d150883e63f9dd1933 /libiberty | |
parent | fc40d314ae8989ae45918c5dad12f738c208e1fd (diff) | |
download | gcc-a2e044d676e5e9ebbc2275838880a44be20d07fc.tar.gz |
PR other/16240
* cp-demangle.c (d_expr_primary): Check for a failure return from
cplus_demangle_type.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83791 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty')
-rw-r--r-- | libiberty/ChangeLog | 6 | ||||
-rw-r--r-- | libiberty/cp-demangle.c | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 599fab3304e..0a3ab05d506 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -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. diff --git a/libiberty/cp-demangle.c b/libiberty/cp-demangle.c index fe4b36712d3..8608bc82507 100644 --- a/libiberty/cp-demangle.c +++ b/libiberty/cp-demangle.c @@ -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. */ |