http://d.puremagic.com/issues/show_bug.cgi?id=10520

           Summary: Building with profiler results in "is not nothrow"
                    error on some contracts
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Denis Shelomovskij <[email protected]> 2013-07-01 
12:49:17 MSD ---
Some in/out contracts causes "is not nothrow" error when building with
"-profile". The only compiler output e.g. for:
---
...
    void copyFrom(R)(R r) if(isInputRange!R && is(ElementType!R == T))
    out { assert(func(_buff)); }
    body { _buff = r.array(); }
...
---

is:

---
..\utils.d(nnn): Error: 'utils.Type!X.Type.func' is not nothrow
---

Workaround:
Disable these contracts or move its code to function body.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to