projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
[fw/sdcc]
/
src
/
SDCCast.c
diff --git
a/src/SDCCast.c
b/src/SDCCast.c
index a0fe596018246c8bf72eb8ab948ed580d540897f..e21105ca710c613f11c4dcd0f8b50945e006bf64 100644
(file)
--- a/
src/SDCCast.c
+++ b/
src/SDCCast.c
@@
-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);
}