Summary: Cannot access __dollar in pure function
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from 2010-12-01 12:52:21 PST ---
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
test.d(5): Error: template instance!(int,int) error instantiating

If I remove "pure" the error vanishes.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to