Index: src/AST/Decl.hpp
===================================================================
--- src/AST/Decl.hpp	(revision c2b3243ebb592c712c00231ae4cd93fd4a4eea3e)
+++ src/AST/Decl.hpp	(revision 72b5805eebfcce6b1f39679ab3e5ffdda0cb2b5c)
@@ -105,7 +105,7 @@
 	ptr<Init> init;
 	ptr<Expr> bitfieldWidth;
-	bool enumInLine = false; // A flag vairable to tell the compile:
-	// this is not a real object declaration. It is a place holder for 
-	// a set of enum value (ObjectDecl).
+	bool enumInLine = false; // enum inline is not a real object declaration. 
+	// It is a place holder for a set of enum value (ObjectDecl)
+	bool importValue = false; // if the value copied from somewhere else
 
 	ObjectDecl( const CodeLocation & loc, const std::string & name, const Type * type,
Index: src/Validate/LinkReferenceToTypes.cpp
===================================================================
--- src/Validate/LinkReferenceToTypes.cpp	(revision c2b3243ebb592c712c00231ae4cd93fd4a4eea3e)
+++ src/Validate/LinkReferenceToTypes.cpp	(revision 72b5805eebfcce6b1f39679ab3e5ffdda0cb2b5c)
@@ -209,6 +209,6 @@
 		if ( member->enumInLine ) {
 			auto targetEnum = symtab.lookupEnum( member->name );
-			if (targetEnum) {			
-				for (auto singleMamber : targetEnum->members) {
+			if ( targetEnum ) {			
+				for ( auto singleMamber : targetEnum->members ) {
 					auto tm = singleMamber.as<ast::ObjectDecl>();
 					auto t = new ast::ObjectDecl(
@@ -224,8 +224,17 @@
 						tm->funcSpec
 					);
+					t->importValue = true;
 					buffer.push_back(t);
 				}
 			}
 		} else {
+			auto search_it = std::find_if( buffer.begin(), buffer.end(), [member](ast::ptr<ast::Decl> cur) {
+				auto curAsObjDecl = cur.as<ast::ObjectDecl>();
+				return (curAsObjDecl->importValue) && (curAsObjDecl->name == member->name);
+			});
+			if ( search_it != buffer.end() ) {
+				buffer.erase( search_it ); // Found an import enum value that has the same name
+				// override the imported value
+			}
 			buffer.push_back( *it );
 		}
