https://issues.dlang.org/show_bug.cgi?id=17399

Walter Bright <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #3 from Walter Bright <[email protected]> ---
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);
}
---

--

Reply via email to