Commit 5748504
Fix #21637 - ICE in tuple comparison with conditional expression
In `elcond`, when restructuring `((a,b) ? c : d)` into `(a, (b ? c : d))`,
`Ety` was copied to the new inner OPcond but `ET` was not. This left the
OPcond with TYstruct Ety but null ET, causing `elstruct` to return early
and `exp2_copytotemp` to crash with `assert(ty != TYstruct)`.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 7848b5e commit 5748504
2 files changed
Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2139 | 2139 | | |
2140 | 2140 | | |
2141 | 2141 | | |
| 2142 | + | |
2142 | 2143 | | |
2143 | 2144 | | |
2144 | 2145 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
0 commit comments