Thread overview
[Issue 17399] core.checkedint.addu cannot inline function
4 days ago
safety0ff.bugz
May 16
https://issues.dlang.org/show_bug.cgi?id=17399

Vladimir Panteleev <thecybershadow@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid
                 CC|                            |thecybershadow@gmail.com

--- Comment #1 from Vladimir Panteleev <thecybershadow@gmail.com> ---
(In reply to thomas.bockman from comment #0)
> The above program fails to compile in release mode:

(here "in release mode" means with -inline)

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

--- Comment #2 from Vladimir Panteleev <thecybershadow@gmail.com> ---
Introduced in https://github.com/dlang/dmd/pull/5292

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

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com

--- Comment #3 from Walter Bright <bugzilla@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);
}
---

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

--- Comment #4 from Walter Bright <bugzilla@digitalmars.com> ---
https://github.com/dlang/dmd/pull/6815

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

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://issues.dlang.org/sh
                   |                            |ow_bug.cgi?id=16652

--
4 days ago
https://issues.dlang.org/show_bug.cgi?id=17399

safety0ff.bugz <safety0ff.bugz@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |safety0ff.bugz@gmail.com

--- Comment #5 from safety0ff.bugz <safety0ff.bugz@gmail.com> ---
Possible duplicate: #16350

--