pure void foo(T...)(T args) { auto x = args[1 .. $]; } void main() { foo(1, 2); } DMD 2.050 shows: test.d(2): Error: pure function 'foo' cannot access mutable static data '__dollar' test.d(5): Error: template instance test.foo!(int,int) error instantiating If I remove "pure" the error vanishes.
Apparently fixed.