Author: bryanduxbury
Date: Sun Sep 12 15:22:21 2010
New Revision: 996325

URL: http://svn.apache.org/viewvc?rev=996325&view=rev
Log:
THRIFT-897. compiler: Don't allow unqualified enum constant references

Missed a spot.


Modified:
    incubator/thrift/trunk/compiler/cpp/src/parse/t_scope.h

Modified: incubator/thrift/trunk/compiler/cpp/src/parse/t_scope.h
URL: 
http://svn.apache.org/viewvc/incubator/thrift/trunk/compiler/cpp/src/parse/t_scope.h?rev=996325&r1=996324&r2=996325&view=diff
==============================================================================
--- incubator/thrift/trunk/compiler/cpp/src/parse/t_scope.h (original)
+++ incubator/thrift/trunk/compiler/cpp/src/parse/t_scope.h Sun Sep 12 15:22:21 
2010
@@ -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);
     }
   }


Reply via email to