[Issue 1447] New: CTFE does not work for static member functions of a class
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Aug 28 04:29:02 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1447
Summary: CTFE does not work for static member functions of a
class
Product: D
Version: 2.003
Platform: PC
OS/Version: Windows
Status: NEW
Severity: blocker
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: samukha at voliacable.com
class Foo //works with structs
{
static string gen()
{
return "";
}
}
auto s = Foo.gen();
---------------
Error: cannot evaluate gen() at compile time
--
More information about the Digitalmars-d-bugs
mailing list