www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13897] New: Wrong purity of inner function


          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: nobody puremagic.com
          Reporter: bearophile_hugs eml.cc

This compiles with no errors in dmd 2.067alpha:

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

Dec 26 2014