DMD2 vs LDC2 inliner

kinke noone at
Tue Feb 26 10:49:25 UTC 2019

On Tuesday, 26 February 2019 at 04:36:59 UTC, James Blachly wrote:
> Sadly, the pragma does not accept enum:
> Error: pragma `inline` pragma(inline, true or false) expected, 
> not inline_overlaps

That's most likely a (trivial) bug and should be fixed.

As stated in the docs, the pragma can also be declared as 
statement inside the function body:

bool overlaps(...)
     version (GDC) pragma(inline, true);

More information about the Digitalmars-d-learn mailing list