January 02, 2019 [Issue 19540] New: ICE when using `typeof(new class {})` as default value for template parameter | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=19540 Issue ID: 19540 Summary: ICE when using `typeof(new class {})` as default value for template parameter Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Keywords: ice Severity: normal Priority: P1 Component: dmd Assignee: nobody@puremagic.com Reporter: ag0aep6g@gmail.com Crashes DMD (segfault): ---- alias inst = templ!(); template templ(T = typeof(new class {})) {} ---- Tested with DMD64 D Compiler v2.084.0. -- |
Copyright © 1999-2021 by the D Language Foundation