www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19540] New: ICE when using `typeof(new class {})` as default

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.

--
Jan 02