September 24, 2022
https://issues.dlang.org/show_bug.cgi?id=23368

          Issue ID: 23368
           Summary: Throwing a null exception at compile time crashes the
                    compiler
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: critical
          Priority: P1
         Component: dmd
          Assignee: nobody@puremagic.com
          Reporter: Ajieskola@gmail.com

Tested with a recent master DMD version, flags -preview=dip1000 -main

-----------------------------
enum x = throw Exception.init;
-----------------------------

Attempt to compile the above program results in a compiler crash. It should result in a normal compilation error.

--