memutils icon indicating copy to clipboard operation
memutils copied to clipboard

Compilation error with LDC

Open bagomot opened this issue 4 years ago • 4 comments

Compilation error with LDC 1.27.0-beta3:

memutils-1.0.4\memutils\source\memutils\allocators.d(18,8): Error: module std.exception import enforceEx not found, did you mean template std.exception.enforce(E : Throwable = Exception) if (is(typeof(new E("", string.init, size_t.init)) : Throwable) || is(typeof(new E(string.init, size_t.init)) : Throwable))?

bagomot avatar Aug 03 '21 07:08 bagomot

UPD: With DMD v2.097.1-dirty the same error.

bagomot avatar Aug 03 '21 07:08 bagomot

I've reproduced this error via LDC 1.28.0 based on DMD v2.098.0 and LLVM 12.0.1

However, it seems this issue is resolved on the master branch.

chances avatar Dec 18 '21 21:12 chances

enforceEx has been removed from the standard library: https://dlang.org/changelog/2.097.0.html#std-exception

chances avatar Dec 18 '21 21:12 chances

I see that the code is already fixed. Could you please tag a new release? This error prevents botan from building.

p-mitana avatar Jul 01 '22 16:07 p-mitana