Index: src/CodeGen/GenType.cc
===================================================================
--- src/CodeGen/GenType.cc	(revision 9ddcee10f8009f7d349eb15c2cfa983e3265d88e)
+++ src/CodeGen/GenType.cc	(revision f1149acdd1aec2da8d7e43ad6e4025f8b736412b)
@@ -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." );
