← Back to index
|
Original Bugzilla link
Bug 1972 – Foreach range statement breaks CTFE
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2008-04-05T11:09:00Z
Last change time
2015-06-09T01:14:35Z
Keywords
patch, rejects-valid
Assigned to
bugzilla
Creator
samukha
Blocks
3058
Attachments
ID
Filename
Summary
Content-Type
Size
393
fix_issue1972.patch
Fix the problem (DMD 2.030)
text/plain
638
Comments
Comment #0
by samukha — 2008-04-05T11:09:39Z
---- int foo() { foreach (c; '0' .. '9') { } return 0; } enum x = foo(); ---- Error: cannot evaluate foo() at compile time
Comment #1
by rsinfu — 2009-06-05T12:24:42Z
Created attachment 393 Fix the problem (DMD 2.030)
Comment #2
by bugzilla — 2009-09-03T13:33:22Z
Fixed dmd 2.032