Index: src/CodeGen/CodeGenerator.cc
===================================================================
--- src/CodeGen/CodeGenerator.cc	(revision a065f1ffe843ea0a3ceecdf36a1210abe07a2441)
+++ src/CodeGen/CodeGenerator.cc	(revision 0bd46fdf0880513efbef382cb2e926954f5c6001)
@@ -277,11 +277,11 @@
 		std::list< Declaration* > &memb = enumDecl->get_members();
 		if (enumDecl->base && ! memb.empty()) {
-			unsigned long long last_val = -1; // if the first enum value has no explicit initializer, 
-			// as other 
+			unsigned long long last_val = -1; // if the first enum value has no explicit initializer,
+			// as other
 			for ( std::list< Declaration* >::iterator i = memb.begin(); i != memb.end();  i++) {
 				ObjectDecl * obj = dynamic_cast< ObjectDecl* >( *i );
 				assert( obj );
-				output << "static const ";
-				output << genType(enumDecl->base, "", options) << " ";
+				output << "static ";
+				output << genType(enumDecl->base, "", options) << " const ";
 				output << mangleName( obj ) << " ";
 				output << " = ";
@@ -914,5 +914,5 @@
 	}
 
-	// QualifiedNameExpr should not reach to CodeGen. 
+	// QualifiedNameExpr should not reach to CodeGen.
 	// FixQualifiedName Convert QualifiedNameExpr to VariableExpr
 	void CodeGenerator::postvisit( QualifiedNameExpr * expr ) {
