summaryrefslogtreecommitdiff
path: root/gdb/d-exp.y
diff options
context:
space:
mode:
authorKeith Seitz <keiths@redhat.com>2015-08-14 17:28:11 -0700
committerKeith Seitz <keiths@redhat.com>2015-08-14 17:28:11 -0700
commitb56ccc202ab674998baf52a710d736702734f9ab (patch)
tree012c3de88927a803522c4a5311d4bceccbc4a8c6 /gdb/d-exp.y
parenta057aa3c457ba38ca25ff1ed13a30c629bb0f259 (diff)
Rename `typename' in d-exp.y to avoid C++ reserved word
A recent patch introduced a variable named `typename' into d-exp.y, and one of the --enable-with-cxx build slaves consequently failed to compile this. This patch simply adds an underscore into the name to avoid the reserved word. gdb/ChangeLog * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename `typename' to `type_name' to avoid C++ reserved word.
Diffstat (limited to 'gdb/d-exp.y')
-rw-r--r--gdb/d-exp.y6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/d-exp.y b/gdb/d-exp.y
index e23a0aaeea..e9d21ac50d 100644
--- a/gdb/d-exp.y
+++ b/gdb/d-exp.y
@@ -522,12 +522,12 @@ PrimaryExpression:
{
struct bound_minimal_symbol msymbol;
struct block_symbol sym;
- const char *typename = TYPE_SAFE_NAME (type);
- int typename_len = strlen (typename);
+ const char *type_name = TYPE_SAFE_NAME (type);
+ int type_name_len = strlen (type_name);
char *name;
name = xstrprintf ("%.*s.%.*s",
- typename_len, typename,
+ type_name_len, type_name,
$3.length, $3.ptr);
make_cleanup (xfree, name);