summaryrefslogtreecommitdiff
path: root/gdb/c-exp.y
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-01-25 17:34:01 +0000
committerTom Tromey <tromey@redhat.com>2013-01-25 17:34:01 +0000
commit37d919cf67622bdbf5b5fb3f10ce71ac23c1d7d0 (patch)
tree4727c7f69e0377731214623c1f39565b8798eda8 /gdb/c-exp.y
parent3748d0516d134b6b9f727f8dbbc93afb4e137cff (diff)
downloadgdb-37d919cf67622bdbf5b5fb3f10ce71ac23c1d7d0.tar.gz
* c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
Diffstat (limited to 'gdb/c-exp.y')
-rw-r--r--gdb/c-exp.y6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/c-exp.y b/gdb/c-exp.y
index 984712047b3..d396ae5bda3 100644
--- a/gdb/c-exp.y
+++ b/gdb/c-exp.y
@@ -923,7 +923,7 @@ qualified_name: TYPENAME COLONCOLON name
&& TYPE_CODE (type) != TYPE_CODE_UNION
&& TYPE_CODE (type) != TYPE_CODE_NAMESPACE)
error (_("`%s' is not defined as an aggregate type."),
- TYPE_NAME (type));
+ TYPE_SAFE_NAME (type));
write_exp_elt_opcode (OP_SCOPE);
write_exp_elt_type (type);
@@ -939,7 +939,7 @@ qualified_name: TYPENAME COLONCOLON name
&& TYPE_CODE (type) != TYPE_CODE_UNION
&& TYPE_CODE (type) != TYPE_CODE_NAMESPACE)
error (_("`%s' is not defined as an aggregate type."),
- TYPE_NAME (type));
+ TYPE_SAFE_NAME (type));
tmp_token.ptr = (char*) alloca ($4.length + 2);
tmp_token.length = $4.length + 1;
@@ -959,7 +959,7 @@ qualified_name: TYPENAME COLONCOLON name
char *copy = copy_name ($3);
error (_("No type \"%s\" within class "
"or namespace \"%s\"."),
- copy, TYPE_NAME ($1.type));
+ copy, TYPE_SAFE_NAME ($1.type));
}
;