www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 21951] New: Segfault on `noreturn.init`

https://issues.dlang.org/show_bug.cgi?id=21951

          Issue ID: 21951
           Summary: Segfault on `noreturn.init`
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Keywords: ice
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: b2.temp gmx.com

this crashes the compiler

---
alias noreturn = typeof(*null);

void main()
{
    auto a = noreturn.init;
}    
---

DMD dirty 9d718f2f8c7f34d3b616791493d9e71d7527f221

--
May 22 2021