www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17399] New: core.checkedint.addu cannot inline function

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

          Issue ID: 17399
           Summary: core.checkedint.addu cannot inline function
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: thomas.bockman gmail.com

core.checkedint is broken with dmd master (2.075):

void main()
{
    import core.checkedint;
    size_t a, b;
    bool over;
    addu(a, b, over);
}

The above program fails to compile in release mode:

    Error: function core.checkedint.addu cannot inline function

--
May 15