# HG changeset patch
# User Mario de Sousa <msousa@fe.up.pt>
# Date 1508521799 -3600
# Node ID 1ac77681946f8608c65fb31c0fef4bf42239ab7c
# Parent  b5b48b6f76068a16e8948992e19930411d20525b
Abort compilation when finding R_EDGE or F_EDGE

diff -r b5b48b6f7606 -r 1ac77681946f 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;
     }