[Issue 17399] core.checkedint.addu cannot inline function
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Fri May 19 11:13:50 PDT 2017
https://issues.dlang.org/show_bug.cgi?id=17399
Walter Bright <bugzilla at digitalmars.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bugzilla at digitalmars.com
--- Comment #3 from Walter Bright <bugzilla at digitalmars.com> ---
Self-contained test case:
---
pragma(inline, true)
uint addu(uint x, uint y, ref bool overflow) {
uint r = x + y;
if (r < x || r < y)
overflow = true;
return r;
}
void foo() {
size_t a, b;
bool over;
addu(a, b, over);
}
---
--
More information about the Digitalmars-d-bugs
mailing list