Bug 15689 – std.typecons.RefCounted doesn't work in ctfe

Status
NEW
Severity
enhancement
Priority
P4
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-02-15T17:33:11Z
Last change time
2024-12-01T16:26:00Z
Assigned to
No Owner
Creator
John Colvin
Moved to GitHub: phobos#10159 →

Comments

Comment #0 by john.loughran.colvin — 2016-02-15T17:33:11Z
because of use of core.stdc.malloc/free
Comment #1 by jack — 2016-02-23T05:41:36Z
I guess the best solution is to integrate std.experimental.allocator when it gets moved to std. The second best would be to add a ctfe check and if true, then allocate with the GC instead?
Comment #2 by razvan.nitu1305 — 2022-11-03T09:17:16Z
This is not a compiler bug, but rather a phobos one.
Comment #3 by robert.schadek — 2024-12-01T16:26:00Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/10159 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB