May 23 [Issue 24560] New: dmd crash on imported function with default parameter containing `new` | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=24560 Issue ID: 24560 Summary: dmd crash on imported function with default parameter containing `new` Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: critical Priority: P1 Component: dmd Assignee: nobody@puremagic.com Reporter: hsteoh@qfbox.info Code: ``` // mod.d class C { } struct S { static void fun(C heur = new C) { } } // test.d import mod; void main() { S.fun(); } ``` Compile command: dmd test.d Compiler output: ``` Segmentation fault ``` -- |
Copyright © 1999-2021 by the D Language Foundation