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.
@maxhaton updated dlang/dmd pull request #14482 "Fix Issue 23368 - Don't segfault on throwing null exception" fixing this issue: - Fix Issue 23368 - Don't segfault on throwing null exception https://github.com/dlang/dmd/pull/14482
dlang/dmd pull request #14482 "Fix Issue 23368 - Don't segfault on throwing null exception" was merged into stable: - 534645e0a45ecf7dc4b9a62bfc8ab5fc6f1313a5 by mhh: Fix Issue 23368 - Don't segfault on throwing null exception https://github.com/dlang/dmd/pull/14482
dlang/dmd pull request #14643 "merge stable" was merged into master: - ab39d16b006ba3db4639ce663da9f1efa49c9d4e by mhh: Fix Issue 23368 - Don't segfault on throwing null exception https://github.com/dlang/dmd/pull/14643