[Issue 23368] New: Throwing a null exception at compile time crashes the compiler

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Sep 24 11:30:33 UTC 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 at puremagic.com
          Reporter: Ajieskola at 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.

--


More information about the Digitalmars-d-bugs mailing list