Abort compilation when finding R_EDGE or F_EDGE
authorMario de Sousa <msousa@fe.up.pt>
Fri, 20 Oct 2017 18:49:59 +0100
changeset 1064 1ac77681946f
parent 1063 b5b48b6f7606
child 1065 0066fe31a034
Abort compilation when finding R_EDGE or F_EDGE
stage4/generate_c/generate_c.cc
--- a/stage4/generate_c/generate_c.cc	Wed Sep 20 14:56:18 2017 +0100
+++ b/stage4/generate_c/generate_c.cc	Fri Oct 20 18:49:59 2017 +0100
@@ -307,9 +307,12 @@
     //void *visit(input_declaration_list_c *symbol) {// iterate through list}
 
     void *visit(edge_declaration_c *symbol) {
+      {STAGE4_ERROR(symbol, symbol, "R_EDGE and F_EDGE declarations are not currently supported"); ERROR;}
+      /* 
       current_type = &tmp_bool; 
       symbol->var1_list->accept(*this);
       current_type = NULL; 
+      */
       return NULL;
     }