Created attachment 527 [details] Proposed patch Testcase: void main() { int a = cast(int)null; } DMD 1.046 compiles fine. DMD 1.047 outputs: test.d(3): Error: Integer constant expression expected instead of null test.d(3): Error: Integer constant expression expected instead of null Attaching proposed patch (needs review).
I forgot to mention... this bug breaks the DFL library ( http://www.dprogramming.com/dfl.php ). Makes me wonder if I'm the only library's user left.
http://www.dsource.org/projects/dmd/changeset/316
Fixed dmd 1.054