Bug 15508 – Malloctor `deallocate` allocates in GC
Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2016-01-03T17:42:31Z
Last change time
2020-03-21T03:56:37Z
Assigned to
No Owner
Creator
Илья Ярошенко
Comments
Comment #0 by ilyayaroshenko — 2016-01-03T17:42:31Z
std\experimental\allocator\mallocator.d(277): Error: @nogc function 'std.experimental.allocator.mallocator.AlignedMallocator.alignedReallocate' cannot call non-@nogc function 'std.experimental.allocator.mallocator.AlignedMallocator.deallocate'
Comment #1 by b2.temp — 2016-01-04T01:29:02Z
(In reply to Илья Ярошенко from comment #0)
> std\experimental\allocator\mallocator.d(277): Error: @nogc function
> 'std.experimental.allocator.mallocator.AlignedMallocator.alignedReallocate'
> cannot call non-@nogc function
> 'std.experimental.allocator.mallocator.AlignedMallocator.deallocate'
on master or 2.070 beta 1 ?
yet it is well taged @nogc
https://github.com/D-Programming-Language/phobos/blob/master/std/experimental/allocator/mallocator.d#L243
Comment #2 by b2.temp — 2016-01-04T01:36:27Z
(In reply to b2.temp from comment #1)
> (In reply to Илья Ярошенко from comment #0)
> > std\experimental\allocator\mallocator.d(277): Error: @nogc function
> > 'std.experimental.allocator.mallocator.AlignedMallocator.alignedReallocate'
> > cannot call non-@nogc function
> > 'std.experimental.allocator.mallocator.AlignedMallocator.deallocate'
>
> on master or 2.070 beta 1 ?
>
> yet it is well taged @nogc
>
> https://github.com/D-Programming-Language/phobos/blob/master/std/
> experimental/allocator/mallocator.d#L243
Sorry for the noise, I've just seen it's it's been fixed 10 hours ago:
https://github.com/D-Programming-Language/phobos/pull/3898