digitalmars.D.bugs - [Issue 16319] New: std.experimental.allocator.make subtly wrong with
- via Digitalmars-d-bugs (22/22) Jul 24 2016 https://issues.dlang.org/show_bug.cgi?id=16319
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: nobody puremagic.com Reporter: lodovico giaretart.net CC: lodovico giaretart.net 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. --
Jul 24 2016