https://issues.dlang.org/show_bug.cgi?id=13897

          Issue ID: 13897
           Summary: Wrong purity of inner function
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Keywords: accepts-invalid
          Severity: normal
          Priority: P1
         Component: DMD
          Assignee: [email protected]
          Reporter: [email protected]

This compiles with no errors in dmd 2.067alpha:


void main() {
    int x;
    void foo() pure {
        x++;
    }
}

--

Reply via email to