www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 16350] New: Error: function core.checkedint.muls cannot

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

          Issue ID: 16350
           Summary: Error: function core.checkedint.muls cannot inline
                    function
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: druntime
          Assignee: nobody puremagic.com
          Reporter: bigepsilonftw gmail.com

Hi,

This simple program compiles well in debug mode with dmd (DMD64 D Compiler
v2.071.1), but give me an error when I compile in release mode:

/usr/include/dmd/druntime/import/core/checkedint.d(416,6): Error: function
core.checkedint.muls cannot inline function


import core.checkedint;

void main()
{
  ulong a = 1;
  ulong b =2;
  bool ovf;
  muls(a, b, ovf);
}

PS: it compiles with ldc2

--
Aug 02 2016