function core.checkedint.muls cannot inline function

Etranger via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Aug 2 11:09:39 PDT 2016


Hi,

I'm trying to use the module core.checkedint, but I have a 
problem and I don't know if it is a bug or me.

This simple program compiles well in debug mode with dmd, but 
give me an error when I compile in release mode: 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

Thanks for your help !


More information about the Digitalmars-d-learn mailing list