* src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
[fw/sdcc] / src / SDCCast.c
index a0fe596018246c8bf72eb8ab948ed580d540897f..e21105ca710c613f11c4dcd0f8b50945e006bf64 100644 (file)
@@ -5715,6 +5715,12 @@ int astErrors(ast *t)
     {
       if (t->isError)
         errors++;
+  
+      if (t->type == EX_VALUE
+          && t->opval.val->sym
+          && t->opval.val->sym->undefined)
+        errors++;
+
       errors += astErrors(t->left);
       errors += astErrors(t->right);
     }