On 7 October 2014 10:15, Ivo Doko wrote: > As far as I can > see, the problem should happen only if static const(expr) variables are > accessed outside the class/struct body. No, that's completely irrelevant. I don't know how you would reach that conclusion form the reference I gave, which says nothing of the sort. What matters is whether you use the variable in such a way that the compiler needs a definition of the variable, rather than just needing to know its value.