Commit 65cca99
parse.y: const_decl_path don't replace destination node by a literal (ruby#11314)
[Bug #20668]
The `dest` node is assumed to be a `CDECL`, so overwriting it with
a `LIT` cause a crash on the next iteration.
Co-authored-by: Jean Boussier <[email protected]>1 parent f85c7de commit 65cca99
2 files changed
+19
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13528 | 13528 | | |
13529 | 13529 | | |
13530 | 13530 | | |
13531 | | - | |
| 13531 | + | |
13532 | 13532 | | |
13533 | | - | |
| 13533 | + | |
13534 | 13534 | | |
13535 | 13535 | | |
13536 | 13536 | | |
| |||
13558 | 13558 | | |
13559 | 13559 | | |
13560 | 13560 | | |
13561 | | - | |
| 13561 | + | |
13562 | 13562 | | |
13563 | 13563 | | |
13564 | 13564 | | |
| |||
13584 | 13584 | | |
13585 | 13585 | | |
13586 | 13586 | | |
13587 | | - | |
| 13587 | + | |
13588 | 13588 | | |
13589 | 13589 | | |
13590 | 13590 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1475 | 1475 | | |
1476 | 1476 | | |
1477 | 1477 | | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
| 1482 | + | |
| 1483 | + | |
| 1484 | + | |
| 1485 | + | |
| 1486 | + | |
| 1487 | + | |
| 1488 | + | |
| 1489 | + | |
| 1490 | + | |
| 1491 | + | |
| 1492 | + | |
1478 | 1493 | | |
1479 | 1494 | | |
1480 | 1495 | | |
| |||
0 commit comments