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: [email protected]
Reporter: [email protected]
Crashes DMD (segfault):
----
alias inst = templ!();
template templ(T = typeof(new class {})) {}
----
Tested with DMD64 D Compiler v2.084.0.
--
