[Issue 13424] Initialization of delegate to do-nothing default causes segfault at runtime

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Sep 5 09:16:19 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=13424

--- Comment #2 from hsteoh at quickfur.ath.cx ---
Ah, sorry, forgot to post complete example. Here it is:
------
struct S {
    void delegate(dchar) onChar = (dchar) {};
}
void main() {
    S s;
    s.onChar('a');
}
------

--


More information about the Digitalmars-d-bugs mailing list