[Issue 3269] pure functions silently become nothrow

2015-06-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3269

Andrei Alexandrescu  changed:

   What|Removed |Added

Version|2.018   |D2

--


[Issue 3269] pure functions silently become nothrow

2009-10-29 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3269


Leandro Lucarella  changed:

   What|Removed |Added

 CC||llu...@gmail.com


--- Comment #2 from Leandro Lucarella  2009-10-29 14:38:17 
PDT ---
Related SVN revision: http://www.dsource.org/projects/dmd/changeset/226

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


[Issue 3269] pure functions silently become nothrow

2009-10-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3269


Don  changed:

   What|Removed |Added

   Keywords||patch, wrong-code


--- Comment #1 from Don  2009-10-27 12:22:53 PDT ---
// A pure function might have side effects, unless it is also nothrow.
// PATCH: e2ir.c, line 288.

e = el_una(op,tyret,ep);
}
else if (ep) {
-e = el_bin(tf->ispure ? OPcallns : OPcall,tyret,ec,ep);
+e = el_bin((tf->ispure && tf->isnothrow) ? OPcallns : OPcall,tyret,ec,ep);
}
else {
-e = el_una(tf->ispure ? OPucallns : OPucall,tyret,ec);
+e = el_una((tf->ispure && tf->isnothrow) ? OPucallns : OPucall,tyret,ec);
}

if (retmethod == RETstack)

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