[Issue 19540] New: ICE when using `typeof(new class {})` as default value for template parameter
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Wed Jan  2 23:15:27 UTC 2019
    
    
  
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 at puremagic.com
          Reporter: ag0aep6g at gmail.com
Crashes DMD (segfault):
----
alias inst = templ!();
template templ(T = typeof(new class {})) {}
----
Tested with DMD64 D Compiler v2.084.0.
--
    
    
More information about the Digitalmars-d-bugs
mailing list