[Issue 10520] New: Building with profiler results in "is not nothrow" error on some contracts
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jul 1 01:49:18 PDT 2013
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: nobody at puremagic.com
ReportedBy: verylonglogin.reg at gmail.com
--- Comment #0 from Denis Shelomovskij <verylonglogin.reg at gmail.com> 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: -------
More information about the Digitalmars-d-bugs
mailing list