diff --git a/std/experimental/allocator/mallocator.d b/std/experimental/allocator/mallocator.d index 18a1d785f22..f50d8c1b0e1 100644 --- a/std/experimental/allocator/mallocator.d +++ b/std/experimental/allocator/mallocator.d @@ -240,7 +240,7 @@ struct AlignedMallocator free(b.ptr); return true; } - else version (Windows) @system + else version (Windows) @system @nogc bool deallocate(void[] b) shared { _aligned_free(b.ptr);