https://issues.dlang.org/show_bug.cgi?id=16319
Issue ID: 16319
Summary: std.experimental.allocator.make subtly wrong with
nested classes
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P1
Component: phobos
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
std.experimental.allocator.make does not initialize the implicit `this.outer`
pointer of nested classes. After you find out, it is obvious that make cannot
initialize it.
But it is subtle and may cause long hours of useless debugging to find it out.
make should either print a big red warning when used on a nested class or
require an additional runtime argument to initialize the outer field with.
--