Summary: Pure/nothrow/@safe-inference failed for a template
                    function if it is instantiated without evaluating at
                    the global scope
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Mac OS X
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from 2011-07-20 09:03:11 PDT ---
Test case:

int f6356()(int a) {
    return a*a;
alias f6356!() g6356;     // comment this out to eliminate the errors
pure nothrow @safe int i6356() {
    return f6356(1);
x.d(6): Error: pure function 'i6356' cannot call impure function 'f6356'
x.d(6): Error: safe function 'i6356' cannot call system function 'f6356'
x.d(6): Error: f6356 is not nothrow
x.d(5): Error: function x.i6356 'i6356' is nothrow yet may throw

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

Reply via email to