Commit 1f3ea25
committed
Fix crash on variable-index goto with lazy-declared array label
When goto label[expr] used a variable expression and the label was
lazy-created (no explicit label declaration with range), the compiler
passed a sentinel with empty range (lo=1, hi=0) to
generate_arraylabel_goto which built an empty case node, causing an
access violation during later processing.1 parent ced47f1 commit 1f3ea25
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2217 | 2217 | | |
2218 | 2218 | | |
2219 | 2219 | | |
2220 | | - | |
2221 | | - | |
| 2220 | + | |
| 2221 | + | |
| 2222 | + | |
| 2223 | + | |
| 2224 | + | |
| 2225 | + | |
| 2226 | + | |
| 2227 | + | |
| 2228 | + | |
| 2229 | + | |
2222 | 2230 | | |
2223 | 2231 | | |
2224 | 2232 | | |
| |||
0 commit comments