Bug 24790 – -vcg-ast ICE on lowered assign exp

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2024-10-03T09:56:32Z
Last change time
2024-11-16T23:27:14Z
Keywords
ice, pull
Assigned to
No Owner
Creator
Dennis

Comments

Comment #0 by dkorpel — 2024-10-03T09:56:32Z
```D struct S { int[] payload; } long f(S s) => s.payload.length += 3; ``` Compiling with -vcg-ast trips an assert with "precedence not defined for token '='", because there's no PREC entry for EXP.loweredAssignExp.
Comment #1 by dlang-bot — 2024-10-03T10:01:40Z
@dkorpel created dlang/dmd pull request #16914 "Fix bugzilla 24790 - -vcg-ast ICE on lowered assign exp" fixing this issue: - Fix bugzilla 24790 - -vcg-ast ICE on lowered assign exp https://github.com/dlang/dmd/pull/16914
Comment #2 by dlang-bot — 2024-10-03T11:46:46Z
dlang/dmd pull request #16914 "Fix bugzilla 24790 - -vcg-ast ICE on lowered assign exp" was merged into stable: - 1f0135d6459e38dc49393590bc83fa2a8ed300e0 by Dennis Korpel: Fix bugzilla 24790 - -vcg-ast ICE on lowered assign exp https://github.com/dlang/dmd/pull/16914
Comment #3 by dlang-bot — 2024-10-07T09:00:29Z
dlang/dmd pull request #16967 "Rebase stable6" was merged into master: - ca699f1849ac16296243e6dd048330b744021b39 by Dennis: Fix bugzilla 24790 - -vcg-ast ICE on lowered assign exp (#16914) Co-authored-by: Dennis Korpel <[email protected]> https://github.com/dlang/dmd/pull/16967
Comment #4 by dlang-bot — 2024-11-16T23:27:14Z
dlang/dmd pull request #17069 "Merge stable" was merged into master: - f420f988ab1f53e604851c73e9f883dab4328f65 by Dennis: Fix bugzilla 24790 - -vcg-ast ICE on lowered assign exp (#16914) Co-authored-by: Dennis Korpel <[email protected]> https://github.com/dlang/dmd/pull/17069