Bug 4029 – CTFE: cannot invoke delegate returned from function

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
Other
OS
Windows
Creation time
2010-03-30T00:30:00Z
Last change time
2014-02-16T15:26:20Z
Keywords
rejects-valid
Assigned to
nobody
Creator
clugdbug

Comments

Comment #0 by clugdbug — 2010-03-30T00:30:49Z
string delegate() bug4029a() { return { return "abc"; }; } string bug4029() { return bug4029a()(); } static assert(bug4029()); ---- bug.d(8): Error: cannot evaluate bug4029a()() at compile time bug.d(11): Error: cannot evaluate bug4029() at compile time bug.d(11): Error: static assert (bug4029()) is not evaluatable at compile time
Comment #1 by bugzilla — 2010-04-01T13:54:50Z
changeset 429
Comment #2 by clugdbug — 2010-04-09T19:22:03Z
Fixed DMD1.058 and DMD2.043.