stage4/generate_cc/generate_cc_tempvardecl.cc
changeset 32 289256ec66f1
parent 0 fb772792efd1
--- a/stage4/generate_cc/generate_cc_tempvardecl.cc	Tue May 29 09:45:50 2007 +0200
+++ b/stage4/generate_cc/generate_cc_tempvardecl.cc	Thu Jun 14 08:58:10 2007 +0200
@@ -114,7 +114,11 @@
         identifier_c *fcalled_name = fcall_iterator.fname();
         /* get that function's declaration... */
         function_declaration_c *fdecl = function_symtable.find_value(fcalled_name);
-        if (fdecl == function_symtable.end_value()) ERROR;
+        if (fdecl == function_symtable.end_value()) {
+          function_type_t function_type = get_function_type(fcalled_name);
+          if (function_type == function_none) ERROR;
+          return;
+        }
         /* create iterator to iterate through each of the called function's parameters... */
         function_param_iterator_c fp_iterator(fdecl);