← Back to index
|
Original Bugzilla link
Bug 1447 – CTFE does not work for static member functions of a class
Status
RESOLVED
Resolution
DUPLICATE
Severity
blocker
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2007-08-28T06:29:00Z
Last change time
2015-06-09T01:14:14Z
Assigned to
bugzilla
Creator
samukha
Comments
Comment #0
by samukha — 2007-08-28T06:29:01Z
class Foo //works with structs { static string gen() { return ""; } } auto s = Foo.gen(); --------------- Error: cannot evaluate gen() at compile time
Comment #1
by davidl — 2007-09-08T23:04:51Z
I think this is a duplicate issue of
http://d.puremagic.com/issues/show_bug.cgi?id=1075
*** This bug has been marked as a duplicate of 1075 ***
Comment #2
by bugzilla — 2007-09-28T22:14:27Z
Fixed dmd 1.021 and 2.004