June 19, 2021 [Issue 22042] New: shared(delegate[]) causes dmd to fail | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=22042 Issue ID: 22042 Summary: shared(delegate[]) causes dmd to fail Product: D Version: D2 Hardware: x86 OS: Mac OS X Status: NEW Severity: major Priority: P1 Component: dmd Assignee: nobody@puremagic.com Reporter: incsall@gmail.com The minimal reproducible example: ---------------------- struct Event { } shared(void delegate()[]) onRelease; void subscribe(E)() { onRelease ~= (){}; } void main() { subscribe!Event; } ---------------------- And result (running with dub a minimal application): Performing "debug" build using /Library/D/dmd/bin/dmd for x86_64. dtest ~master: building configuration "application"... /Library/D/dmd/bin/dmd failed with exit code -11. dmd version: DMD64 D Compiler v2.097.0 -- | ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply