Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation error with LDC #19

Closed
bagomot opened this issue Aug 3, 2021 · 7 comments
Closed

Compilation error with LDC #19

bagomot opened this issue Aug 3, 2021 · 7 comments

Comments

@bagomot
Copy link

bagomot commented Aug 3, 2021

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
Copy link
Author

bagomot commented Aug 3, 2021

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

@chances
Copy link

chances commented Dec 18, 2021

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
Copy link

chances commented Dec 18, 2021

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

@p-mitana
Copy link

p-mitana commented Jul 1, 2022

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

@cyrusmsk
Copy link

cyrusmsk commented Dec 3, 2022

@etcimon could you please approve the PR for libasync and memutils?

@shakor0
Copy link

shakor0 commented Dec 17, 2022

Yes, could we please get an updated version?
We have projects that are frozen to older dmd and or ldc compilers as we are dependent on this project.
Thanks

@etcimon etcimon closed this as completed Feb 22, 2023
@etcimon
Copy link
Owner

etcimon commented Feb 22, 2023

This should be fixed, note that I disabled .dup in favor of .clone

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants