[Issue 16350] New: Error: function core.checkedint.muls cannot inline function

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Aug 2 13:50:39 PDT 2016


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 at puremagic.com
          Reporter: bigepsilonftw at 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

--


More information about the Digitalmars-d-bugs mailing list