check_reachable() continued at the wrong position, when encountering a break statement.
authorChristoph Mallon <christoph.mallon@gmx.de>
Mon, 25 Aug 2008 08:24:27 +0000 (08:24 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Mon, 25 Aug 2008 08:24:27 +0000 (08:24 +0000)
[r21432]

parser.c

index 6c390b5..d403755 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -4809,6 +4809,7 @@ static void check_reachable(statement_t *const stmt)
                                        case STATEMENT_WHILE:
                                        case STATEMENT_DO_WHILE:
                                        case STATEMENT_FOR:
+                                               last = parent;
                                                next = parent->base.next;
                                                goto found_break_parent;