summaryrefslogtreecommitdiff
path: root/libiberty/cp-demangle.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@wasabisystems.com>2004-06-28 15:23:33 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2004-06-28 15:23:33 +0000
commit00a5aa9c30c9eeb2cfb3b691b88dbee1fbbe5a4b (patch)
tree5bd693b3f3af2ca6bc4477d150883e63f9dd1933 /libiberty/cp-demangle.c
parent3e1f1ba5dc85513e05db6a7605ecd51ba476b597 (diff)
downloadgcc-00a5aa9c30c9eeb2cfb3b691b88dbee1fbbe5a4b.tar.gz
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
Diffstat (limited to 'libiberty/cp-demangle.c')
-rw-r--r--libiberty/cp-demangle.c2
1 files changed, 2 insertions, 0 deletions
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. */