June 23, 2021 [Issue 22076] New: hashOf(S) can segfault if S.toHash is forwarded via 'alias this' to a receiver which may be null | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=22076 Issue ID: 22076 Summary: hashOf(S) can segfault if S.toHash is forwarded via 'alias this' to a receiver which may be null Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority: P1 Component: druntime Assignee: nobody@puremagic.com Reporter: n8sh.secondary@hotmail.com Demonstration: --- void main() { struct S { Object a; alias a this; } cast(void) .object.hashOf(S.init); // Segfaults. } --- -- | ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply