summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan Duxbury <bryanduxbury@apache.org>2010-09-12 15:22:21 +0000
committerBryan Duxbury <bryanduxbury@apache.org>2010-09-12 15:22:21 +0000
commitcb0218f5c8fcc5e14016ea97f9cfc51009472246 (patch)
treeecc73e081d69dfda0b62d48613de46d6a33bdf41
parent9f0a786dad1d6d0d737b89f96ba7ec90bf9096e2 (diff)
downloadthrift-cb0218f5c8fcc5e14016ea97f9cfc51009472246.tar.gz
THRIFT-897. compiler: Don't allow unqualified enum constant references
Missed a spot. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@996325 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--compiler/cpp/src/parse/t_scope.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/cpp/src/parse/t_scope.h b/compiler/cpp/src/parse/t_scope.h
index cbb92cf4c..01894aa88 100644
--- a/compiler/cpp/src/parse/t_scope.h
+++ b/compiler/cpp/src/parse/t_scope.h
@@ -161,7 +161,7 @@ class t_scope {
valstm << const_val->get_integer();
throw "Couldn't find a named value in enum " + tenum->get_name() + " for value " + valstm.str();
}
- const_val->set_identifier(enum_value->get_name());
+ const_val->set_identifier(tenum->get_name() + "." + enum_value->get_name());
const_val->set_enum(tenum);
}
}