Index: src/CodeGen/GenType.cc
===================================================================
--- src/CodeGen/GenType.cc	(revision 9ddcee10f8009f7d349eb15c2cfa983e3265d88e)
+++ src/CodeGen/GenType.cc	(revision 3f9a8d0ec2f7cd020d50f08e995ba642d316f6bb)
@@ -46,4 +46,5 @@
 	void postvisit( ast::UnionInstType const * type );
 	void postvisit( ast::EnumInstType const * type );
+	void postvisit( ast::EnumPosType const * type );
 	void postvisit( ast::TypeInstType const * type );
 	void postvisit( ast::TupleType const * type );
@@ -239,4 +240,8 @@
 }
 
+void GenType::postvisit( ast::EnumPosType const * type ) {
+	postvisit( type->instance );
+}
+
 void GenType::postvisit( ast::TypeInstType const * type ) {
 	assertf( !options.genC, "TypeInstType should not reach code generation." );
