← Back to index
|
Original Bugzilla link
Bug 21854 – @live breaks foreach over integers
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
Windows
Creation time
2021-04-23T14:30:52Z
Last change time
2024-04-09T06:39:01Z
Keywords
live, pull
Assigned to
No Owner
Creator
mhh
Comments
Comment #0
by maxhaton — 2021-04-23T14:30:52Z
@live void glorifiedNop() { foreach(int tmp; 0..10) { } } run with -preview=dip1021
https://run.dlang.io/is/zGpg3C
Comment #1
by maxhaton — 2021-04-23T14:31:17Z
Error: variable onlineapp.glorifiedNop.tmp is both Undefined and Owner
Comment #2
by nick — 2023-01-28T15:32:58Z
Confirmed with v2.101.0.
Comment #3
by bugzilla — 2024-04-09T04:40:37Z
The trouble here appears to be that I thought I could get away with just gen vectors, but the DFA needs kill vectors, too.
Comment #4
by dlang-bot — 2024-04-09T05:13:19Z
@WalterBright created dlang/dmd pull request #16367 "fix bugzilla Issue 21854 - @live breaks foreach over integers" fixing this issue: - fix bugzilla Issue 21854 - @live breaks foreach over integers
https://github.com/dlang/dmd/pull/16367
Comment #5
by dlang-bot — 2024-04-09T06:39:01Z
dlang/dmd pull request #16367 "fix bugzilla Issue 21854 - @live breaks foreach over integers" was merged into master: - d32f565093a4ec9bc9a7b92b23416b0df586d353 by Walter Bright: fix bugzilla Issue 21854 - @live breaks foreach over integers
https://github.com/dlang/dmd/pull/16367