Improve handling of "do ... while" following "else". This change

eliminates some incorrect "Unmatched 'else'" errors.
This commit is contained in:
Robert Nordier 1999-05-21 14:46:52 +00:00
parent 99ee419296
commit 34ba737933

View File

@ -310,7 +310,7 @@ reduce()
case whilestmt: /* while (...) on top */
if (ps.p_stack[ps.tos - 1] == dohead) {
/* it is termination of a do while */
ps.p_stack[--ps.tos] = stmt;
ps.tos -= 2;
break;
}
else