Commit 61c54ae
Fix reference propagation to use chain tracking instead of boolean flag
The boolean propagateReferences=false approach blocks ALL intertwined
propagation in recursive calls, breaking nested foreach-by-reference
(e.g. bug-13676 where value→row→rows must chain).
Replace with intertwinedPropagatedFrom: a list of variable names already
visited in the current propagation chain. This prevents circular
back-propagation (A→B→A) while allowing legitimate chains (value→row→rows).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 5b16da0 commit 61c54ae
1 file changed
Lines changed: 10 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2565 | 2565 | | |
2566 | 2566 | | |
2567 | 2567 | | |
2568 | | - | |
| 2568 | + | |
| 2569 | + | |
| 2570 | + | |
| 2571 | + | |
2569 | 2572 | | |
2570 | 2573 | | |
2571 | 2574 | | |
| |||
2577 | 2580 | | |
2578 | 2581 | | |
2579 | 2582 | | |
2580 | | - | |
2581 | | - | |
2582 | | - | |
2583 | | - | |
2584 | 2583 | | |
2585 | 2584 | | |
2586 | 2585 | | |
| |||
2598 | 2597 | | |
2599 | 2598 | | |
2600 | 2599 | | |
| 2600 | + | |
| 2601 | + | |
| 2602 | + | |
| 2603 | + | |
2601 | 2604 | | |
2602 | | - | |
| 2605 | + | |
2603 | 2606 | | |
2604 | 2607 | | |
2605 | 2608 | | |
2606 | | - | |
| 2609 | + | |
2607 | 2610 | | |
2608 | 2611 | | |
2609 | 2612 | | |
| |||
0 commit comments