D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 15508 - Malloctor `deallocate` allocates in GC
Summary: Malloctor `deallocate` allocates in GC
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: x86 Windows
: P1 enhancement
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-03 17:42 UTC by Илья Ярошенко
Modified: 2020-03-21 03:56 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Илья Ярошенко 2016-01-03 17:42:31 UTC
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 basile-z 2016-01-04 01:29:02 UTC
(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 basile-z 2016-01-04 01:36:27 UTC
(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