Fixed bug in case statement with enumerated type variable as case expression
authorLaurent Bessard
Fri, 08 Mar 2013 02:00:36 +0100
changeset 800 2481fffe6e58
parent 799 214c9dced257
child 801 8255f1a371d7
child 802 cac262d1d6a5
Fixed bug in case statement with enumerated type variable as case expression
stage4/generate_c/generate_c_st.cc
--- a/stage4/generate_c/generate_c_st.cc	Fri Mar 08 01:01:15 2013 +0100
+++ b/stage4/generate_c/generate_c_st.cc	Fri Mar 08 02:00:36 2013 +0100
@@ -247,6 +247,12 @@
   return NULL;
 }
 
+/*  enumerated_type_name ':' enumerated_spec_init */
+void *visit(enumerated_type_declaration_c *symbol) {
+  symbol->enumerated_type_name->accept(*this);
+  return NULL;
+}
+
 /*********************/
 /* B 1.4 - Variables */
 /*********************/