Bug 23368 – Throwing a null exception at compile time crashes the compiler
Status
RESOLVED
Resolution
FIXED
Severity
critical
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2022-09-24T11:30:33Z
Last change time
2022-11-14T22:27:10Z
Keywords
pull
Assigned to
No Owner
Creator
Ate Eskola
Comments
Comment #0 by Ajieskola — 2022-09-24T11:30:33Z
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.