stage4/generate_c/generate_c_st.cc
changeset 941 c2ef93412407
parent 936 0f7bcc160568
child 943 566414d7ba1f
equal deleted inserted replaced
940:61e2bdae5899 941:c2ef93412407
   503       symbol->exp->accept(*this);    
   503       symbol->exp->accept(*this);    
   504       s4o.print(")");  
   504       s4o.print(")");  
   505     } else {
   505     } else {
   506       /* We are in a structured variable - the structured_variable_c itself will already have printed out the '->' !! */ 
   506       /* We are in a structured variable - the structured_variable_c itself will already have printed out the '->' !! */ 
   507       if (NULL != dynamic_cast<deref_operator_c *>(symbol->exp))
   507       if (NULL != dynamic_cast<deref_operator_c *>(symbol->exp))
   508         STAGE4_ERROR(symbol, symbol->exp, "The use of consecutive derefencing operators between a struct and its elem (ex: struct_ref_ref^^.elem) is currently not supported for code inside a Function_Block.");
   508         STAGE4_ERROR(symbol, symbol->exp, "The use of two or more consecutive derefencing operators between a struct variable and its record elem (ex: struct_ref_ref^^.elem) is currently not supported for code inside a Function_Block.");
   509       symbol->exp->accept(*this);
   509       symbol->exp->accept(*this);
   510     }
   510     }
   511   }
   511   }
   512 
   512 
   513   return NULL;
   513   return NULL;