← Back to index
|
Original Bugzilla link
Bug 17389 – std.traits.hasNested fails for class with member of same type
Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2017-05-10T11:43:32Z
Last change time
2018-01-05T13:28:38Z
Keywords
rejects-valid
Assigned to
No Owner
Creator
Nick Treleaven
Comments
Comment #0
by nick — 2017-05-10T11:43:32Z
static class A { A a; } static assert(!hasNested!A); hasNested fails to compile. Fix included in this PR:
https://github.com/dlang/phobos/pull/5379
Comment #1
by nick — 2017-05-16T13:45:50Z
Separated into its own, plus nested class references should probably be ignored anyway:
https://github.com/dlang/phobos/pull/5385
Comment #2
by github-bugzilla — 2017-07-02T20:03:34Z
Commit pushed to master at
https://github.com/dlang/phobos
https://github.com/dlang/phobos/commit/95f6d5bff36f2f951e0df6e899e92dc27e8311e8
Fix Issue 17389 - hasNested infinite recursion Happens with a class with a member of the same type.
Comment #3
by github-bugzilla — 2017-08-16T13:22:45Z
Commit pushed to stable at
https://github.com/dlang/phobos
https://github.com/dlang/phobos/commit/95f6d5bff36f2f951e0df6e899e92dc27e8311e8
Fix Issue 17389 - hasNested infinite recursion
Comment #4
by github-bugzilla — 2018-01-05T13:28:38Z
Commit pushed to dmd-cxx at
https://github.com/dlang/phobos
https://github.com/dlang/phobos/commit/95f6d5bff36f2f951e0df6e899e92dc27e8311e8
Fix Issue 17389 - hasNested infinite recursion